mirror of
https://github.com/Xiao-MoMi/craft-engine.git
synced 2025-12-25 09:59:20 +00:00
Update BukkitServerPlayer.java
This commit is contained in:
@@ -139,7 +139,7 @@ public class BukkitServerPlayer extends Player {
|
||||
@Override
|
||||
public boolean canBreak(BlockPos pos) {
|
||||
Item<ItemStack> stackItem = getItemInHand(InteractionHand.MAIN_HAND);
|
||||
Object itemStack = stackItem == null ? Reflections.instance$ItemStack$EMPTY : stackItem.getItem();
|
||||
Object itemStack = stackItem == null ? Reflections.instance$ItemStack$EMPTY : stackItem.getLiteralObject();
|
||||
Object blockPos = LocationUtils.toBlockPos(pos);
|
||||
try {
|
||||
Object blockInWorld = Reflections.constructor$BlockInWorld.newInstance(level().serverWorld(), blockPos, false);
|
||||
|
||||
Reference in New Issue
Block a user