Repository navigation
Keystone 1.3.5
JourneyMap draws LittleTiles and Chisels & Bits blocks in the colours of what is inside them.
Both mods use one block state for every build in the world, so JourneyMap gave whole cities the single colour that state got from its placeholder texture. What such a block really shows lives in its tile entity.
- The block is taken apart per map pixel: 16x16 columns, the highest tile or bit of each column gives its block state, and JourneyMap's own colours for those states are averaged over the columns — what the block looks like seen from above.
- Done through JourneyMap's own extension point (a handler per mod id sets an IBlockColorProxy that is asked per position), not by patching its renderer.
- Anything unexpected falls back to JourneyMap's own colour, and the first error switches the module off for the session. -Dkeystone.jmcolor=false turns it off.
Map tiles already drawn keep their old colours until those chunks are mapped again.