summaryrefslogtreecommitdiffstats
path: root/nms-patches/Block.patch
diff options
context:
space:
mode:
Diffstat (limited to 'nms-patches/Block.patch')
-rw-r--r--nms-patches/Block.patch21
1 files changed, 18 insertions, 3 deletions
diff --git a/nms-patches/Block.patch b/nms-patches/Block.patch
index 5933b92a..a509ae3c 100644
--- a/nms-patches/Block.patch
+++ b/nms-patches/Block.patch
@@ -19,7 +19,22 @@
Item item = this.getDropType(iblockdata, world.random, i);
if (item != Items.a) {
-@@ -923,7 +924,7 @@
+@@ -364,7 +365,13 @@
+ EntityItem entityitem = new EntityItem(world, (double) blockposition.getX() + d0, (double) blockposition.getY() + d1, (double) blockposition.getZ() + d2, itemstack);
+
+ entityitem.q();
+- world.addEntity(entityitem);
++ // CraftBukkit start
++ if (world.captureDrops != null) {
++ world.captureDrops.add(entityitem);
++ } else {
++ world.addEntity(entityitem);
++ }
++ // CraftBukkit end
+ }
+ }
+
+@@ -923,7 +930,7 @@
if (hashset.contains(block16)) {
for (int i = 0; i < 15; ++i) {
@@ -28,7 +43,7 @@
Block.REGISTRY_ID.a(block16.fromLegacyData(i), j);
}
-@@ -932,7 +933,7 @@
+@@ -932,7 +939,7 @@
while (unmodifiableiterator.hasNext()) {
IBlockData iblockdata = (IBlockData) unmodifiableiterator.next();
@@ -37,7 +52,7 @@
Block.REGISTRY_ID.a(iblockdata, k);
}
-@@ -941,6 +942,12 @@
+@@ -941,6 +948,12 @@
}