aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/gregtech
diff options
context:
space:
mode:
authorGDCloud <93287602+GDCloudstrike@users.noreply.github.com>2024-11-13 11:26:40 +0100
committerGitHub <noreply@github.com>2024-11-13 10:26:40 +0000
commit65367dfdcb91c37a2638a513acc17e22c7effae6 (patch)
treec2ff955c88acbdc6ed985299d658cf9e9fbff2b6 /src/main/java/gregtech
parent479ab37a236feb22b4db57176cc7857d7c1f5262 (diff)
downloadGT5-Unofficial-65367dfdcb91c37a2638a513acc17e22c7effae6.tar.gz
GT5-Unofficial-65367dfdcb91c37a2638a513acc17e22c7effae6.tar.bz2
GT5-Unofficial-65367dfdcb91c37a2638a513acc17e22c7effae6.zip
Add nbt safeguard for dtpf convergence catalyst type (#3486)
Co-authored-by: Martin Robertz <dream-master@gmx.net>
Diffstat (limited to 'src/main/java/gregtech')
-rw-r--r--src/main/java/gregtech/common/tileentities/machines/multi/MTEPlasmaForge.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/gregtech/common/tileentities/machines/multi/MTEPlasmaForge.java b/src/main/java/gregtech/common/tileentities/machines/multi/MTEPlasmaForge.java
index 705aa03916..5045645956 100644
--- a/src/main/java/gregtech/common/tileentities/machines/multi/MTEPlasmaForge.java
+++ b/src/main/java/gregtech/common/tileentities/machines/multi/MTEPlasmaForge.java
@@ -1265,7 +1265,7 @@ public class MTEPlasmaForge extends MTEExtendedPowerMultiBlockBase<MTEPlasmaForg
public void loadNBTData(final NBTTagCompound aNBT) {
running_time = aNBT.getLong("eRunningTime");
discount = aNBT.getDouble("eLongDiscountValue");
- catalystTypeForRecipesWithoutCatalyst = aNBT.getInteger("catalystType");
+ if (aNBT.hasKey("catalystType")) catalystTypeForRecipesWithoutCatalyst = aNBT.getInteger("catalystType");
convergence = aNBT.getBoolean("convergence");
super.loadNBTData(aNBT);
}