Fixed owner group being null
This commit is contained in:
parent
fd2db61d08
commit
dbf141b7e5
1 changed files with 5 additions and 1 deletions
|
@ -19,7 +19,7 @@ import dark.core.interfaces.IInvBox;
|
||||||
import dark.core.prefab.invgui.InvChest;
|
import dark.core.prefab.invgui.InvChest;
|
||||||
|
|
||||||
/** Prefab for simple object who only need basic inv support and nothing more
|
/** Prefab for simple object who only need basic inv support and nothing more
|
||||||
*
|
*
|
||||||
* @author Darkguardsman */
|
* @author Darkguardsman */
|
||||||
public class TileEntityInv extends TileEntityAdvanced implements IExternalInv, ISidedInventory, ISpecialAccess
|
public class TileEntityInv extends TileEntityAdvanced implements IExternalInv, ISidedInventory, ISpecialAccess
|
||||||
{
|
{
|
||||||
|
@ -257,6 +257,10 @@ public class TileEntityInv extends TileEntityAdvanced implements IExternalInv, I
|
||||||
@Override
|
@Override
|
||||||
public AccessGroup getOwnerGroup()
|
public AccessGroup getOwnerGroup()
|
||||||
{
|
{
|
||||||
|
if (this.getGroup("owner") == null)
|
||||||
|
{
|
||||||
|
this.groups.add(new AccessGroup("owner"));
|
||||||
|
}
|
||||||
return this.getGroup("owner");
|
return this.getGroup("owner");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue