3
0
Mirror von https://github.com/PaperMC/Paper.git synchronisiert 2024-12-18 20:40:08 +01:00
Paper/nms-patches/Block.patch

31 Zeilen
966 B
Diff

2015-05-25 12:37:24 +02:00
--- a/net/minecraft/server/Block.java
+++ b/net/minecraft/server/Block.java
2020-08-11 23:00:00 +02:00
@@ -209,7 +209,13 @@
EntityItem entityitem = new EntityItem(world, (double) blockposition.getX() + d0, (double) blockposition.getY() + d1, (double) blockposition.getZ() + d2, itemstack);
2019-04-23 04:00:00 +02:00
entityitem.defaultPickupDelay();
- world.addEntity(entityitem);
+ // CraftBukkit start
+ if (world.captureDrops != null) {
+ world.captureDrops.add(entityitem);
+ } else {
+ world.addEntity(entityitem);
+ }
+ // CraftBukkit end
}
}
2020-08-11 23:00:00 +02:00
@@ -336,6 +342,12 @@
2020-06-25 02:00:00 +02:00
return this;
}
2016-02-29 22:32:46 +01:00
+ // CraftBukkit start
2020-08-11 23:00:00 +02:00
+ public int getExpDrop(IBlockData iblockdata, WorldServer worldserver, BlockPosition blockposition, ItemStack itemstack) {
+ return 0;
+ }
+ // CraftBukkit end
2016-02-29 22:32:46 +01:00
+
2020-06-25 02:00:00 +02:00
public static final class a {
2018-08-26 04:00:00 +02:00
2020-06-25 02:00:00 +02:00
private final IBlockData a;