mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-27 23:33:08 +00:00
Fixed a few models, fixed a crash
This commit is contained in:
1 parent
fba7fb34f0
commit
543d45d57a
2 files changed
+5
-1
No files matched your search
@@ -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()));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user