Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
(cherry picked from commit af502b6)

# Conflicts:
#	gradle.properties
  • Loading branch information
Buuz135 authored and blizzard4591 committed Jan 13, 2018
1 parent 4ec21f7 commit b0cedd9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
3 changes: 2 additions & 1 deletion src/main/java/com/buuz135/industrial/utils/IFFakePlayer.java
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

}

0 comments on commit b0cedd9

Please sign in to comment.