3
0
Mirror von https://github.com/PaperMC/Paper.git synchronisiert 2024-12-24 07:10:10 +01:00
Paper/nms-patches/BlockMobSpawner.patch

23 Zeilen
810 B
Diff

2015-05-25 12:37:24 +02:00
--- a/net/minecraft/server/BlockMobSpawner.java
+++ b/net/minecraft/server/BlockMobSpawner.java
2019-04-23 04:00:00 +02:00
@@ -14,9 +14,19 @@
@Override
public void dropNaturally(IBlockData iblockdata, World world, BlockPosition blockposition, ItemStack itemstack) {
super.dropNaturally(iblockdata, world, blockposition, itemstack);
+ /* CraftBukkit start - Delegate to getExpDrop
2019-04-23 04:00:00 +02:00
int i = 15 + world.random.nextInt(15) + world.random.nextInt(15);
2019-04-23 04:00:00 +02:00
this.dropExperience(world, blockposition, i);
+ */
+ }
+
+ @Override
2019-04-23 04:00:00 +02:00
+ public int getExpDrop(IBlockData iblockdata, World world, BlockPosition blockposition, ItemStack itemstack) {
+ int i = 15 + world.random.nextInt(15) + world.random.nextInt(15);
+
2019-04-23 04:00:00 +02:00
+ return i;
+ // CraftBukkit end
}
2019-04-23 04:00:00 +02:00
@Override