From d812c849f9a9d4e0f8a4924ca87fca4ec9d86094 Mon Sep 17 00:00:00 2001 From: Robotia Date: Fri, 29 Jan 2016 11:37:41 -0500 Subject: [PATCH] Spigot Fix (https://github.com/PaperSpigot/Paper-1.7/blob/master/CraftBukkit-Patches/0051-Fix-BrewingStands-Removing-NBT-Potions.patch) --- .../block/BlockBrewingStand.java.patch | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 patches/net/minecraft/block/BlockBrewingStand.java.patch diff --git a/patches/net/minecraft/block/BlockBrewingStand.java.patch b/patches/net/minecraft/block/BlockBrewingStand.java.patch new file mode 100644 index 0000000..735929b --- /dev/null +++ b/patches/net/minecraft/block/BlockBrewingStand.java.patch @@ -0,0 +1,30 @@ +--- ../src-base/minecraft/net/minecraft/block/BlockBrewingStand.java ++++ ../src-work/minecraft/net/minecraft/block/BlockBrewingStand.java +@@ -20,7 +20,7 @@ + import net.minecraft.util.AxisAlignedBB; + import net.minecraft.util.IIcon; + import net.minecraft.world.World; +- ++import net.minecraft.nbt.NBTTagCompound; + public class BlockBrewingStand extends BlockContainer + { + private Random field_149961_a = new Random(); +@@ -126,6 +126,12 @@ + entityitem.motionX = (double)((float)this.field_149961_a.nextGaussian() * f3); + entityitem.motionY = (double)((float)this.field_149961_a.nextGaussian() * f3 + 0.2F); + entityitem.motionZ = (double)((float)this.field_149961_a.nextGaussian() * f3); ++ // Spigot Start ++ if ( itemstack.hasTagCompound() ) ++ { ++ entityitem.getEntityItem().setTagCompound( (NBTTagCompound) itemstack.getTagCompound().copy() ); ++ } ++ // Spigot End + p_149749_1_.spawnEntityInWorld(entityitem); + } + } +@@ -177,4 +183,4 @@ + { + return this.iconBrewingStandBase; + } +-} ++}