mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-10-25 20:32:32 +00:00
Fix smeltery NPE on world startup
This commit is contained in:
1 parent
d9ae55a42a
commit
9e7eec8215
1 file changed
+4
-4
@@ -720,8 +720,8 @@ public class SmelteryLogic extends InventoryLogic implements IActiveLogic, IFaci
|
||||
@Override
|
||||
public void markDirty ()
|
||||
{
|
||||
updateEntity();
|
||||
updateTemperatures();
|
||||
updateEntity();
|
||||
|
||||
super.markDirty();
|
||||
needsUpdate = true;
|
||||
@@ -1212,12 +1212,12 @@ public class SmelteryLogic extends InventoryLogic implements IActiveLogic, IFaci
|
||||
moltenMetal.add(fluid);
|
||||
}
|
||||
|
||||
if(maxBlockCapacity != meltingTemps.length)
|
||||
adjustLayers(layers, true);
|
||||
//if(maxBlockCapacity != meltingTemps.length)
|
||||
// adjustLayers(layers, true);
|
||||
|
||||
if(!tags.getBoolean("ValidStructure"))
|
||||
validStructure = false; // only negative update because we want to do a clientside structure check too
|
||||
else if(!validStructure)
|
||||
else if(!validStructure && worldObj != null) // if the worldobj is null it happens on loading of a world. check shouldn't be done there
|
||||
checkValidPlacement();
|
||||
|
||||
// adjustLayers(layers, true);
|
||||
|
||||
Reference in new issue
Block a user