mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-04 22:14:40 +01:00
22 lines
827 B
Diff
22 lines
827 B
Diff
--- a/net/minecraft/server/BlockMobSpawner.java
|
|
+++ b/net/minecraft/server/BlockMobSpawner.java
|
|
@@ -16,9 +16,19 @@
|
|
|
|
public void dropNaturally(IBlockData iblockdata, World world, BlockPosition blockposition, float f, int i) {
|
|
super.dropNaturally(iblockdata, world, blockposition, f, i);
|
|
+ /* CraftBukkit start - Delegate to getExpDrop
|
|
int j = 15 + world.random.nextInt(15) + world.random.nextInt(15);
|
|
|
|
this.dropExperience(world, blockposition, j);
|
|
+ */
|
|
+ }
|
|
+
|
|
+ @Override
|
|
+ public int getExpDrop(IBlockData iblockdata, World world, BlockPosition blockposition, int enchantmentLevel) {
|
|
+ int j = 15 + world.random.nextInt(15) + world.random.nextInt(15);
|
|
+
|
|
+ return j;
|
|
+ // CraftBukkit end
|
|
}
|
|
|
|
public EnumRenderType c(IBlockData iblockdata) {
|