9
0
mirror of https://github.com/Xiao-MoMi/craft-engine.git synced 2025-12-28 19:39:11 +00:00

added hide base entity option

This commit is contained in:
XiaoMoMi
2025-03-25 17:11:18 +08:00
parent 2d34f296f5
commit 10b675ae5d
3 changed files with 11 additions and 0 deletions

View File

@@ -598,6 +598,9 @@ public class PacketConsumers {
if (furniture != null) {
user.furnitureView().computeIfAbsent(furniture.baseEntityId(), k -> new ArrayList<>()).addAll(furniture.subEntityIds());
user.sendPacket(furniture.spawnPacket(), false);
if (ConfigManager.hideBaseEntity()) {
event.setCancelled(true);
}
}
}
} catch (Exception e) {