diff --git a/src/main/java/com/buuz135/industrial/tile/misc/BlackHoleUnitTile.java b/src/main/java/com/buuz135/industrial/tile/misc/BlackHoleUnitTile.java index 99eaf16d4..a115c1ae1 100644 --- a/src/main/java/com/buuz135/industrial/tile/misc/BlackHoleUnitTile.java +++ b/src/main/java/com/buuz135/industrial/tile/misc/BlackHoleUnitTile.java @@ -174,8 +174,9 @@ public void readFromNBT(NBTTagCompound compound) { else { Item item = Item.getByNameOrId(compound.getString(NBT_ITEMSTACK)); if (item != null) { - stack = new ItemStack(item, 1, compound.hasKey(NBT_META) ? compound.getInteger(NBT_META) : 0); - if (compound.hasKey(NBT_ITEM_NBT)) stack.setTagCompound(compound.getCompoundTag(NBT_ITEM_NBT)); + stack = new ItemStack(item, 1, compound.getInteger(NBT_META)); + NBTTagCompound nbttag = compound.getCompoundTag(NBT_ITEM_NBT); + if (!nbttag.hasNoTags()) stack.setTagCompound(nbttag); } } if (!compound.hasKey(NBT_AMOUNT)) amount = 0; diff --git a/src/main/java/com/buuz135/industrial/utils/IFFakePlayer.java b/src/main/java/com/buuz135/industrial/utils/IFFakePlayer.java index 8e91e5329..59071e084 100644 --- a/src/main/java/com/buuz135/industrial/utils/IFFakePlayer.java +++ b/src/main/java/com/buuz135/industrial/utils/IFFakePlayer.java @@ -10,9 +10,10 @@ public class IFFakePlayer extends FakePlayer { private static final UUID uuid = UUID.fromString("ec5b5875-ebb5-4b47-833b-0de37ac9e6d7"); - private static GameProfile PROFILE = new GameProfile(uuid, "[IFFarmer]"); + private static GameProfile PROFILE = new GameProfile(uuid, "[IF]"); public IFFakePlayer(WorldServer worldIn) { super(worldIn, PROFILE); } + }