mirror of
https://github.com/BlazingGames/blazing-games-plugin.git
synced 2025-02-03 21:26:41 -05:00
Update src/main/java/de/blazemcworld/blazinggames/events/BreakBlockEventListener.java
Co-authored-by: AstroSquared <sys@ivycollective.dev>
This commit is contained in:
parent
9d914d026c
commit
e1b2998279
1 changed files with 1 additions and 1 deletions
|
@ -356,7 +356,7 @@ public class BreakBlockEventListener implements Listener {
|
|||
if (!(block instanceof CraftBlock craftBlock)) return 0;
|
||||
|
||||
net.minecraft.world.level.block.state.BlockState nmsBlockState = craftBlock.getNMS();
|
||||
BlockPos pos = ((CraftBlock) block).getPosition();
|
||||
BlockPos pos = craftBlock.getPosition();
|
||||
ServerLevel level = ((CraftBlock) block).getCraftWorld().getHandle();
|
||||
|
||||
return nmsBlockState.getBlock().getExpDrop(nmsBlockState, level, pos, CraftItemStack.asNMSCopy(tool), true);
|
||||
|
|
Loading…
Reference in a new issue