mirror of
https://github.com/PaperMC/Paper.git
synced 2026-11-25 10:29:41 -05:00
Implement BlockBreakEvent block experience. Adds BUKKIT-2033
This commit is contained in:
1 parent
8d946b88b3
commit
27c1c85adb
5 files changed
+73
-3
No files matched your search
@@ -22,9 +22,17 @@ public class BlockMobSpawner extends BlockContainer {
|
||||
|
||||
public void dropNaturally(World world, int i, int j, int k, int l, float f, int i1) {
|
||||
super.dropNaturally(world, i, j, k, l, f, i1);
|
||||
/* CraftBukkit start - delegate to getExpDrop
|
||||
int j1 = 15 + world.random.nextInt(15) + world.random.nextInt(15);
|
||||
|
||||
this.g(world, i, j, k, j1);
|
||||
this.g(world, i, j, k, j1); */
|
||||
}
|
||||
|
||||
public int getExpDrop(World world, int data, int enchantmentLevel) {
|
||||
int j1 = 15 + world.random.nextInt(15) + world.random.nextInt(15);
|
||||
|
||||
return j1;
|
||||
// CraftBukkit end
|
||||
}
|
||||
|
||||
public boolean d() {
|
||||
|
||||
Reference in new issue
Block a user