Fixed a few models, fixed a crash
This commit is contained in:
parent
fba7fb34f0
commit
543d45d57a
2 changed files with 5 additions and 1 deletions
|
@ -75,6 +75,8 @@ public class CTMRenderingHandler implements ISimpleBlockRenderingHandler
|
|||
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
return rendererOld.renderStandardBlock(block, x, y, z);
|
||||
|
|
|
@ -220,7 +220,9 @@ public class MekanismRecipe implements IRecipe
|
|||
{
|
||||
if(entry != null && entry.getKey() != null && entry.getValue() != null)
|
||||
{
|
||||
upgrades.put(entry.getKey(), Math.min(entry.getKey().getMax(), upgrades.get(entry.getKey()) + entry.getValue()));
|
||||
Integer val = upgrades.get(entry.getKey());
|
||||
|
||||
upgrades.put(entry.getKey(), Math.min(entry.getKey().getMax(), (val != null ? val : 0) + entry.getValue()));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue