
Gui doesn't update for new parts
LemmaEOF opened this issue ยท 0 comments
BB Dev 1.1.30
MC 1.12.2
Forge 2257
Issue: Gui for boiler doesn't update when parts are changed, requires relog
Potentially offending code:
- BoilerContainer L63-L67
if (boiler.pumpCount == 0) {
panel.add(progressTicks, 75, 37, 24, 17);
} else {
panel.add(pump, 75, 37, 24, 17);
}
- TileEntityBoilerController L147-L150
public void onAssemble(World world, List<BlockPos> blocks) {
boilerBlockCount = 0;
fireboxBlockCount = 0;
pumpCount = 0;
- ConcreteContainer code
Reproduction:
- create a new boiler
- check its gui
- swap it from a standard boiler to a pump boiler or vice versa
- check again (won't update)
- relog
- check again (properly updated)