diff options
author | bartimaeusnek <33183715+bartimaeusnek@users.noreply.github.com> | 2020-11-02 20:55:34 +0100 |
---|---|---|
committer | bartimaeusnek <33183715+bartimaeusnek@users.noreply.github.com> | 2020-11-02 20:55:34 +0100 |
commit | 87c3702289ff4eddd345906dbf24c2f5fdc24674 (patch) | |
tree | 438670de54a645c626b0ce5193fb2cb60eed32e3 | |
parent | 3546b1352aa6ffb0637886cc4743b9c3d13be37b (diff) | |
download | GT5-Unofficial-87c3702289ff4eddd345906dbf24c2f5fdc24674.tar.gz GT5-Unofficial-87c3702289ff4eddd345906dbf24c2f5fdc24674.tar.bz2 GT5-Unofficial-87c3702289ff4eddd345906dbf24c2f5fdc24674.zip |
Fixes Server Crash
Former-commit-id: 95309f3ecb1105e1025544176b3e71ed3e074a7c
-rw-r--r-- | src/main/java/com/github/bartimaeusnek/bartworks/system/material/Werkstoff.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/com/github/bartimaeusnek/bartworks/system/material/Werkstoff.java b/src/main/java/com/github/bartimaeusnek/bartworks/system/material/Werkstoff.java index e99c32d110..16cbee2d2f 100644 --- a/src/main/java/com/github/bartimaeusnek/bartworks/system/material/Werkstoff.java +++ b/src/main/java/com/github/bartimaeusnek/bartworks/system/material/Werkstoff.java @@ -25,7 +25,6 @@ package com.github.bartimaeusnek.bartworks.system.material; import com.github.bartimaeusnek.bartworks.system.oredict.OreDictHandler; import com.github.bartimaeusnek.bartworks.util.*; import com.github.bartimaeusnek.crossmod.thaumcraft.util.ThaumcraftHandler; -import com.google.common.base.Verify; import gregtech.api.enums.*; import gregtech.api.interfaces.IColorModulationContainer; import gregtech.api.interfaces.ISubTagContainer; @@ -95,7 +94,8 @@ public class Werkstoff implements IColorModulationContainer, ISubTagContainer { (List) materials.mOreByProducts, new Pair<>(materials, 1) ); - Verify.verify(mID > 31_766 && mID <= 32_767); + if(!(mID > 31_766 && mID <= 32_767)) + throw new IllegalArgumentException(); this.stats.mass = materials.getMass(); this.stats.protons = materials.getProtons(); this.stats.meltingPoint = materials.mMeltingPoint; |