Merge pull request #2004 from simon816/sign-nbt-fix

Fix placing signs with NBT prompting for text
This commit is contained in:
LexManos 2015-07-24 13:53:27 -07:00
commit 65123c66a0

View file

@ -38,7 +38,7 @@
+ //Forge: Fixes MC-75630 - Exploit with signs and command blocks
+ final net.minecraft.server.MinecraftServer server = net.minecraft.server.MinecraftServer.func_71276_C();
+ if (!p_179224_0_.field_72995_K && tileentity.restrictNBTCopy() &&
+ (server == null || server.func_71203_ab().func_152596_g(player.func_146103_bH())))
+ (server == null || !server.func_71203_ab().func_152596_g(player.func_146103_bH())))
+ return false;
NBTTagCompound nbttagcompound = new NBTTagCompound();
NBTTagCompound nbttagcompound1 = (NBTTagCompound)nbttagcompound.func_74737_b();