From dbf141b7e5c75f8540d37194efdb0b816218c596 Mon Sep 17 00:00:00 2001 From: DarkGuardsman Date: Sat, 26 Oct 2013 18:24:16 -0400 Subject: [PATCH] Fixed owner group being null --- src/dark/core/prefab/machine/TileEntityInv.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/dark/core/prefab/machine/TileEntityInv.java b/src/dark/core/prefab/machine/TileEntityInv.java index 731cb7c48..9d8562e7c 100644 --- a/src/dark/core/prefab/machine/TileEntityInv.java +++ b/src/dark/core/prefab/machine/TileEntityInv.java @@ -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"); }