aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/gregtech/api/metatileentity
diff options
context:
space:
mode:
authorGlease <4586901+Glease@users.noreply.github.com>2023-07-30 20:26:53 +0800
committerGitHub <noreply@github.com>2023-07-30 14:26:53 +0200
commitf983308b936c54f3331424b0d6d51d8a3b11f415 (patch)
treeeabcbe297913884a7acc2997d7464d5fb355d2f2 /src/main/java/gregtech/api/metatileentity
parent9812da7aabe91ce96d9ece08f792912aa7d1882c (diff)
downloadGT5-Unofficial-f983308b936c54f3331424b0d6d51d8a3b11f415.tar.gz
GT5-Unofficial-f983308b936c54f3331424b0d6d51d8a3b11f415.tar.bz2
GT5-Unofficial-f983308b936c54f3331424b0d6d51d8a3b11f415.zip
enable subclass to allow less voiding mode being set (#2191)
* enable subclass to allow less voiding mode being set * fix bug * rename
Diffstat (limited to 'src/main/java/gregtech/api/metatileentity')
-rw-r--r--src/main/java/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_MultiBlockBase.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main/java/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_MultiBlockBase.java b/src/main/java/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_MultiBlockBase.java
index 2f84151af9..e5fcc7a0a5 100644
--- a/src/main/java/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_MultiBlockBase.java
+++ b/src/main/java/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_MultiBlockBase.java
@@ -298,6 +298,7 @@ public abstract class GT_MetaTileEntity_MultiBlockBase extends MetaTileEntity
// backward compatibility
voidingMode = aNBT.getBoolean(VOID_EXCESS_NBT_KEY) ? VoidingMode.VOID_ALL : VoidingMode.VOID_NONE;
}
+ if (!getAllowedVoidingModes().contains(voidingMode)) voidingMode = getDefaultVoidingMode();
int aOutputItemsLength = aNBT.getInteger("mOutputItemsLength");
if (aOutputItemsLength > 0) {