diff options
Diffstat (limited to 'patch-remap/mache-spigotflower-stripped/net/minecraft/world/level/block/SpawnerBlock.java.patch')
-rw-r--r-- | patch-remap/mache-spigotflower-stripped/net/minecraft/world/level/block/SpawnerBlock.java.patch | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/patch-remap/mache-spigotflower-stripped/net/minecraft/world/level/block/SpawnerBlock.java.patch b/patch-remap/mache-spigotflower-stripped/net/minecraft/world/level/block/SpawnerBlock.java.patch new file mode 100644 index 0000000000..94bcf33ce2 --- /dev/null +++ b/patch-remap/mache-spigotflower-stripped/net/minecraft/world/level/block/SpawnerBlock.java.patch @@ -0,0 +1,23 @@ +--- a/net/minecraft/world/level/block/SpawnerBlock.java ++++ b/net/minecraft/world/level/block/SpawnerBlock.java +@@ -41,8 +43,9 @@ + @Nullable + @Override + @Override +- public <T extends BlockEntity> BlockEntityTicker<T> getTicker(Level level, BlockState blockstate, BlockEntityType<T> blockentitytype) { +- return createTickerHelper(blockentitytype, BlockEntityType.MOB_SPAWNER, level.isClientSide ? SpawnerBlockEntity::clientTick : SpawnerBlockEntity::serverTick); ++ 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 +@@ -55,6 +57,8 @@ + this.popExperience(serverlevel, blockpos, i); + } + ++ return 0; ++ // CraftBukkit end + } + + @Override |