Do not hide entities with the BauSystem hullhider

HullHider gets a hideEntities parameter: the fight still hides entities inside
hidden hulls, /hullhider only hides blocks. As the TechHider also dropped
spawn packets at hidden positions, ForPlayer#canAccessEntitySpawn decides
about them now, which the BauTechHider always allows.
This commit is contained in:
2026-10-31 15:57:25 +01:00
parent edb13fb7df
commit d76c396268
6 changed files with 34 additions and 11 deletions
@@ -52,6 +52,13 @@ public interface AccessPrivilegeProvider {
boolean canAccessEntity(int entityId);
/**
* @return whether the player may see the entity spawning at this position
*/
default boolean canAccessEntitySpawn(int entityId, int blockX, int blockY, int blockZ) {
return canAccessEntity(entityId) && canAccessPosition(blockX, blockY, blockZ);
}
boolean canAccessBlockEntity(int blockX, int blockY, int blockZ, BlockEntityType<?> type);
/**