mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-08 08:02:13 -07:00
Update to Minecraft 1.13-pre7
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
--- a/net/minecraft/server/BlockMobSpawner.java
|
||||
+++ b/net/minecraft/server/BlockMobSpawner.java
|
||||
@@ -22,9 +22,19 @@
|
||||
@@ -16,9 +16,19 @@
|
||||
|
||||
public void dropNaturally(World world, BlockPosition blockposition, IBlockData iblockdata, float f, int i) {
|
||||
super.dropNaturally(world, blockposition, iblockdata, f, i);
|
||||
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);
|
||||
|
||||
@@ -12,11 +12,11 @@
|
||||
+ }
|
||||
+
|
||||
+ @Override
|
||||
+ public int getExpDrop(World world, IBlockData iblockdata, int enchantmentLevel) {
|
||||
+ 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 boolean b(IBlockData iblockdata) {
|
||||
public EnumRenderType c(IBlockData iblockdata) {
|
||||
|
Reference in New Issue
Block a user