if (entityTrain instanceof EntityTrainCore) {
int slot=1;
if (entityTrain.getType() == TrainsInMotion.transportTypes.STEAM || entityTrain.getType() == TrainsInMotion.transportTypes.NUCLEAR_STEAM){
slot=2;
}
<BUG>addSlotToContainer(new Slot(((EntityTrainCore) railTransport).inventory, 0, 8, 53));
</BUG>
if (slot == 2) {
<BUG>addSlotToContainer(new Slot(((EntityTrainCore) railTransport).inventory, 1, 35, 53));
</BUG>
}

if (entityTrain instanceof EntityTrainCore) {
int slot=1;
if (entityTrain.getType() == TrainsInMotion.transportTypes.STEAM || entityTrain.getType() == TrainsInMotion.transportTypes.NUCLEAR_STEAM){
slot=2;
}
addSlotToContainer(new fuelSlot(((EntityTrainCore) railTransport).inventory, 0, 8, 53));
if (slot == 2) {
addSlotToContainer(new waterSlot(((EntityTrainCore) railTransport).inventory, 1, 35, 53));
}
