From 87c3702289ff4eddd345906dbf24c2f5fdc24674 Mon Sep 17 00:00:00 2001 From: bartimaeusnek <33183715+bartimaeusnek@users.noreply.github.com> Date: Mon, 2 Nov 2020 20:55:34 +0100 Subject: Fixes Server Crash Former-commit-id: 95309f3ecb1105e1025544176b3e71ed3e074a7c --- .../com/github/bartimaeusnek/bartworks/system/material/Werkstoff.java | 4 ++-- 1 file 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; -- cgit