mirror of
https://github.com/Xiao-MoMi/craft-engine.git
synced 2025-12-25 18:09:27 +00:00
fix(bukkit): 阻止发送仅服务端实体包
This commit is contained in:
@@ -658,6 +658,9 @@ public class PacketConsumers {
|
||||
if (BukkitFurnitureManager.instance().isFurnitureBaseEntity(entityId)) {
|
||||
event.setCancelled(true);
|
||||
}
|
||||
if (BukkitFurnitureManager.instance().isFurnitureCollisionEntity(entityId)) {
|
||||
event.setCancelled(true);
|
||||
}
|
||||
} catch (Exception e) {
|
||||
CraftEngine.instance().logger().warn("Failed to handle ClientboundMoveEntityPacket$Pos", e);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user