9
0
mirror of https://github.com/Xiao-MoMi/craft-engine.git synced 2025-12-26 10:29:20 +00:00

fix(block): 修复堆叠方块放置时的交互结果

This commit is contained in:
jhqwqmc
2025-06-18 05:02:24 +08:00
parent c0c21dc83b
commit feb120b6a3

View File

@@ -55,7 +55,7 @@ public class StackableBlockBehavior extends BukkitBlockBehavior {
FastNMS.INSTANCE.method$ItemStack$consume(item.getLiteralObject(), 1, player.serverPlayer());
player.swingHand(context.getHand());
}
return InteractionResult.FAIL;
return InteractionResult.SUCCESS_AND_CANCEL;
}
return InteractionResult.PASS;
}