Skip to content

Commit

Permalink
Fix server-sided issues
Browse files Browse the repository at this point in the history
  • Loading branch information
serenibyss committed Feb 25, 2022
1 parent d9cc8f8 commit 71f0a30
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@
import gregtech.api.metatileentity.MetaTileEntityHolder;
import gregtech.api.pattern.*;
import gregtech.api.sound.GTSoundManager;
import gregtech.api.util.world.DummyWorld;
import gregtech.client.renderer.ICubeRenderer;
import gregtech.client.renderer.handler.MultiblockPreviewRenderer;
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 @@ -76,9 +76,9 @@ public void update() {
if (getOffsetTimer() % 20 == 0 || isFirstTick()) {
checkStructurePattern();
}
// TrackedDummyWorld is the world for the JEI preview. We do not want to update the Multi in this world,
// DummyWorld 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)) {
if (isStructureFormed() && !(getWorld() instanceof DummyWorld)) {
updateFormedValid();
}
}
Expand Down
3 changes: 3 additions & 0 deletions src/main/resources/gregtech_at.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,6 @@ public net.minecraft.client.Minecraft field_110452_an # metadataSerializer
# RenderGlobal
public net.minecraft.client.renderer.RenderGlobal field_72738_E # damagedBlocks
public net.minecraft.client.renderer.RenderGlobal field_94141_F # destroyBlockIcons

# Biome
public net.minecraft.world.biome.Biome field_76791_y # biomeName

0 comments on commit 71f0a30

Please sign in to comment.