mirror of
https://github.com/Xiao-MoMi/craft-engine.git
synced 2025-12-25 09:59:20 +00:00
添加家具有效性判断
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user