aboutsummaryrefslogtreecommitdiffhomepage
path: root/patch-remap/mache-spigotflower-stripped/net/minecraft/world/level/block/DropExperienceBlock.java.patch
diff options
context:
space:
mode:
Diffstat (limited to 'patch-remap/mache-spigotflower-stripped/net/minecraft/world/level/block/DropExperienceBlock.java.patch')
-rw-r--r--patch-remap/mache-spigotflower-stripped/net/minecraft/world/level/block/DropExperienceBlock.java.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/patch-remap/mache-spigotflower-stripped/net/minecraft/world/level/block/DropExperienceBlock.java.patch b/patch-remap/mache-spigotflower-stripped/net/minecraft/world/level/block/DropExperienceBlock.java.patch
new file mode 100644
index 0000000000..24d445e184
--- /dev/null
+++ b/patch-remap/mache-spigotflower-stripped/net/minecraft/world/level/block/DropExperienceBlock.java.patch
@@ -0,0 +1,22 @@
+--- a/net/minecraft/world/level/block/DropExperienceBlock.java
++++ b/net/minecraft/world/level/block/DropExperienceBlock.java
+@@ -30,6 +29,11 @@
+ }
+
+ @Override
++ public void spawnAfterBreak(IBlockData state, ServerLevel level, BlockPos pos, ItemStack stack, boolean dropExperience) {
++ super.spawnAfterBreak(state, level, pos, stack, dropExperience);
++ // CraftBukkit start - Delegate to getExpDrop
++ }
++
+ @Override
+ public void spawnAfterBreak(BlockState blockstate, ServerLevel serverlevel, BlockPos blockpos, ItemStack itemstack, boolean flag) {
+ super.spawnAfterBreak(blockstate, serverlevel, blockpos, itemstack, flag);
+@@ -37,5 +40,7 @@
+ this.tryDropExperience(serverlevel, blockpos, itemstack, this.xpRange);
+ }
+
++ return 0;
++ // CraftBukkit end
+ }
+ }