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