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;
|
||||
|
||||
/** Prefab for simple object who only need basic inv support and nothing more
|
||||
*
|
||||
*
|
||||
* @author Darkguardsman */
|
||||
public class TileEntityInv extends TileEntityAdvanced implements IExternalInv, ISidedInventory, ISpecialAccess
|
||||
{
|
||||
|
@ -257,6 +257,10 @@ public class TileEntityInv extends TileEntityAdvanced implements IExternalInv, I
|
|||
@Override
|
||||
public AccessGroup getOwnerGroup()
|
||||
{
|
||||
if (this.getGroup("owner") == null)
|
||||
{
|
||||
this.groups.add(new AccessGroup("owner"));
|
||||
}
|
||||
return this.getGroup("owner");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue