Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-22 14:28:09 +01:00
23 Zeilen
879 B
Diff
23 Zeilen
879 B
Diff
|
--- ../work/decompile-bb26c12b/net/minecraft/server/BlockMobSpawner.java 2014-11-27 08:59:46.541422551 +1100
|
||
|
+++ src/main/java/net/minecraft/server/BlockMobSpawner.java 2014-11-27 08:42:10.172850872 +1100
|
||
|
@@ -22,9 +22,19 @@
|
||
|
|
||
|
public void dropNaturally(World world, BlockPosition blockposition, IBlockData iblockdata, float f, int i) {
|
||
|
super.dropNaturally(world, blockposition, iblockdata, 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(World world, IBlockData iblockdata, int enchantmentLevel) {
|
||
|
+ int j = 15 + world.random.nextInt(15) + world.random.nextInt(15);
|
||
|
+
|
||
|
+ return j;
|
||
|
+ // CraftBukkit end
|
||
|
}
|
||
|
|
||
|
public boolean c() {
|