aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/gtPlusPlus/xmod/gregtech/common
diff options
context:
space:
mode:
authorGlease <4586901+Glease@users.noreply.github.com>2022-03-04 23:13:48 +0800
committerGitHub <noreply@github.com>2022-03-04 16:13:48 +0100
commit04f287d6f5f86ce8b492d074ee0f783c38bb0387 (patch)
tree6d2e3cd102a7604bba9ec6c81549a9a2054fb78e /src/main/java/gtPlusPlus/xmod/gregtech/common
parent09362b416f3770559669569c0e9519a2973aed62 (diff)
downloadGT5-Unofficial-04f287d6f5f86ce8b492d074ee0f783c38bb0387.tar.gz
GT5-Unofficial-04f287d6f5f86ce8b492d074ee0f783c38bb0387.tar.bz2
GT5-Unofficial-04f287d6f5f86ce8b492d074ee0f783c38bb0387.zip
fix power sub station ui variable desync (#145)
Diffstat (limited to 'src/main/java/gtPlusPlus/xmod/gregtech/common')
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/storage/GregtechMetaTileEntity_PowerSubStationController.java24
1 files changed, 1 insertions, 23 deletions
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/storage/GregtechMetaTileEntity_PowerSubStationController.java b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/storage/GregtechMetaTileEntity_PowerSubStationController.java
index 344b7f710a..133f8d4f7e 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/storage/GregtechMetaTileEntity_PowerSubStationController.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/storage/GregtechMetaTileEntity_PowerSubStationController.java
@@ -1,9 +1,6 @@
package gtPlusPlus.xmod.gregtech.common.tileentities.machines.multi.storage;
-import static com.gtnewhorizon.structurelib.structure.StructureUtility.ofBlock;
-import static com.gtnewhorizon.structurelib.structure.StructureUtility.ofChain;
-import static com.gtnewhorizon.structurelib.structure.StructureUtility.onElementPass;
-import static com.gtnewhorizon.structurelib.structure.StructureUtility.transpose;
+import static com.gtnewhorizon.structurelib.structure.StructureUtility.*;
import static gregtech.api.util.GT_StructureUtility.ofHatchAdder;
import static gregtech.api.util.GT_StructureUtility.ofHatchAdderOptional;
@@ -288,25 +285,6 @@ public class GregtechMetaTileEntity_PowerSubStationController extends GregtechMe
return STRUCTURE_DEFINITION;
}
- public static <T> IStructureElement<T> onlyIf(Predicate<? super T> predicate, IStructureElement<? super T> downstream) {
- return new IStructureElement<T>() {
- @Override
- public boolean check(T t, World world, int x, int y, int z) {
- return predicate.test(t) && downstream.check(t, world, x, y, z);
- }
-
- @Override
- public boolean spawnHint(T t, World world, int x, int y, int z, ItemStack trigger) {
- return predicate.test(t) && downstream.spawnHint(t, world, x, y, z, trigger);
- }
-
- @Override
- public boolean placeBlock(T t, World world, int x, int y, int z, ItemStack trigger) {
- return predicate.test(t) && downstream.placeBlock(t, world, x, y, z, trigger);
- }
- };
- }
-
public static <T> IStructureElement<T> ofCell(int aIndex) {
return new IStructureElement<T>() {
@Override