Previews for nearby buildings not working when using build tool
Vortrox opened this issue ยท 0 comments
Prerequisites
- I am running the latest alpha version of MineColonies and Structurize for my Minecraft version.
- I checked the MineColonies/Structurize wiki and made sure my issue is not covered there.
- I made sure that this issue is not a duplicate of any existing issue.
Context
- Minecraft Version: 1.16.5
- MineColonies Version: 1.16.5-1.0.365-ALPHA
- Structurize Version: 1.16.5-1.0.339
- Related Mods and their Versions:
Expected behavior
Previews for a nearby building should appear when the hut block of the new building comes near the existing building's hut block.
Actual behavior
Previews for nearby buildings don't appear even when the new building is directly on top of the existing building. This happens regardless of the building's style. If I'm correct this should be true for all buildings except for:
- barracks & their towers
- builder
- crusher
- guard towers
- houses
- sifter
- town hall
- warehouse
- tavern
- mystical site
Example of miner preview not showing:
Steps to reproduce the issue
- Create a work order for a new miner in a colony
- Right click the build tool right next to the hut block for the mine
- The build preview for the new building should appear, but the preview for the mine won't appear
Logs
- latest.log:
- crashlog:
Notes
This was discussed in discord here.
I think the problem is that any building that uses an EmptyView is skipped from being added to the blueprint cache in the ClientEventHandler because of this if statement and because most buildings except for the ones listed above are registered to use EmptyView in the buildings initializer.
Viewers
- Add a thumbs-up to the bug report if you are also affected. This helps the bug report become more visible to the team and doesn't clutter the comments.
- Add a comment if you have any insights or background information that isn't already part of the conversation.