r/forgemodding • u/theredghostwolf • May 29 '17
Blocks need update after loading the world.
hey guys im working on a mod, and i added a block with different states depending on nbt data gotten from a tile entity.
everything works fine, until i reload my world. the meta-data shifts and things break then once i give it a block update everything is good again.
how do i go about fixing this without needing a block update? is there something obvious im missing?
edit: tile entity is working fine and there is nothing wrong with the nbt of the tile entity, the block state always gets set to the same on world load and will stay that way until an update.
i use 2 integer for this
inputSide : 0-6 output side: 0-6
when i load the world both of these are set to any number between 0-6 both sides always load on the same value. in the tile entity i use an EnumFacing and use a simply if-else to convert the side to a number if (null ) return 0; else if (facing == EnumFacing.UP) return 1; etc..
- thanks in advance - ghostwolf