Skip to content

Commit

Permalink
Don't tick the preview world from updateFormedValid (#608)
Browse files Browse the repository at this point in the history
  • Loading branch information
ALongStringOfNumbers authored Feb 22, 2022
1 parent ab02ad7 commit a9877da
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
import gregtech.client.renderer.texture.Textures;
import gregtech.api.util.BlockInfo;
import gregtech.api.util.GTUtility;
import gregtech.client.utils.TrackedDummyWorld;
import gregtech.common.blocks.MetaBlocks;
import gregtech.common.blocks.VariantActiveBlock;
import net.minecraft.block.Block;
Expand Down Expand Up @@ -75,7 +76,9 @@ public void update() {
if (getOffsetTimer() % 20 == 0 || isFirstTick()) {
checkStructurePattern();
}
if (isStructureFormed()) {
// TrackedDummyWorld is the world for the JEI preview. We do not want to update the Multi in this world,
// besides initially forming it in checkStructurePattern
if (isStructureFormed() && !(getWorld() instanceof TrackedDummyWorld)) {
updateFormedValid();
}
}
Expand Down

0 comments on commit a9877da

Please sign in to comment.