mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-06 10:49:40 +01:00
29 lines
1.3 KiB
Diff
29 lines
1.3 KiB
Diff
From 82db8f98979f0c9970b19711f5a939b6f07a67a8 Mon Sep 17 00:00:00 2001
|
|
From: md_5 <md_5@live.com.au>
|
|
Date: Wed, 9 Oct 2013 18:20:05 +1100
|
|
Subject: [PATCH] Fix BrewingStands Removing NBT / Potions
|
|
|
|
|
|
diff --git a/src/main/java/net/minecraft/server/BlockBrewingStand.java b/src/main/java/net/minecraft/server/BlockBrewingStand.java
|
|
index 270b2cb..308207a 100644
|
|
--- a/src/main/java/net/minecraft/server/BlockBrewingStand.java
|
|
+++ b/src/main/java/net/minecraft/server/BlockBrewingStand.java
|
|
@@ -86,7 +86,13 @@ public class BlockBrewingStand extends BlockContainer {
|
|
entityitem.motX = (double) ((float) this.a.nextGaussian() * f3);
|
|
entityitem.motY = (double) ((float) this.a.nextGaussian() * f3 + 0.2F);
|
|
entityitem.motZ = (double) ((float) this.a.nextGaussian() * f3);
|
|
- world.addEntity(entityitem);
|
|
+ // Spigot Start
|
|
+ if ( itemstack.hasTag() )
|
|
+ {
|
|
+ entityitem.getItemStack().setTag( (NBTTagCompound) itemstack.getTag().clone() );
|
|
+ }
|
|
+ // Spigot End
|
|
+ world.addEntity( entityitem );
|
|
}
|
|
}
|
|
}
|
|
--
|
|
1.8.1.2
|
|
|