aboutsummaryrefslogtreecommitdiffhomepage
path: root/patch-remap/og/net/minecraft/world/level/block/DropExperienceBlock.patch
diff options
context:
space:
mode:
Diffstat (limited to 'patch-remap/og/net/minecraft/world/level/block/DropExperienceBlock.patch')
-rw-r--r--patch-remap/og/net/minecraft/world/level/block/DropExperienceBlock.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/patch-remap/og/net/minecraft/world/level/block/DropExperienceBlock.patch b/patch-remap/og/net/minecraft/world/level/block/DropExperienceBlock.patch
new file mode 100644
index 0000000000..cf005a11d4
--- /dev/null
+++ b/patch-remap/og/net/minecraft/world/level/block/DropExperienceBlock.patch
@@ -0,0 +1,20 @@
+--- a/net/minecraft/world/level/block/DropExperienceBlock.java
++++ b/net/minecraft/world/level/block/DropExperienceBlock.java
+@@ -31,9 +31,16 @@
+ @Override
+ public void spawnAfterBreak(IBlockData iblockdata, WorldServer worldserver, BlockPosition blockposition, ItemStack itemstack, boolean flag) {
+ super.spawnAfterBreak(iblockdata, worldserver, blockposition, itemstack, flag);
++ // CraftBukkit start - Delegate to getExpDrop
++ }
++
++ @Override
++ public int getExpDrop(IBlockData iblockdata, WorldServer worldserver, BlockPosition blockposition, ItemStack itemstack, boolean flag) {
+ if (flag) {
+- this.tryDropExperience(worldserver, blockposition, itemstack, this.xpRange);
++ return this.tryDropExperience(worldserver, blockposition, itemstack, this.xpRange);
+ }
+
++ return 0;
++ // CraftBukkit end
+ }
+ }