Fixed owner group being null

This commit is contained in:
DarkGuardsman 2013-10-26 18:24:16 -04:00
parent fd2db61d08
commit dbf141b7e5

View file

@ -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");
} }