9
0
mirror of https://github.com/Xiao-MoMi/craft-engine.git synced 2025-12-25 09:59:20 +00:00

添加家具有效性判断

This commit is contained in:
XiaoMoMi
2025-07-26 23:11:10 +08:00
parent fd6eb13404
commit 02be890499

View File

@@ -1602,6 +1602,10 @@ public class PacketConsumers {
}
mainThreadTask = () -> {
if (!furniture.isValid()) {
return;
}
FurnitureInteractEvent interactEvent = new FurnitureInteractEvent(serverPlayer.platformPlayer(), furniture, hand, interactionPoint);
if (EventUtils.fireAndCheckCancel(interactEvent)) {
return;