Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-23 14:50:08 +01:00
23 Zeilen
810 B
Diff
23 Zeilen
810 B
Diff
--- a/net/minecraft/server/BlockMobSpawner.java
|
|
+++ b/net/minecraft/server/BlockMobSpawner.java
|
|
@@ -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
|
|
int i = 15 + world.random.nextInt(15) + world.random.nextInt(15);
|
|
|
|
this.dropExperience(world, blockposition, i);
|
|
+ */
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public int getExpDrop(IBlockData iblockdata, World world, BlockPosition blockposition, ItemStack itemstack) {
|
|
+ int i = 15 + world.random.nextInt(15) + world.random.nextInt(15);
|
|
+
|
|
+ return i;
|
|
+ // CraftBukkit end
|
|
}
|
|
|
|
@Override
|