From dadde271e482f3588ddd93383e89078c0b1a2446 Mon Sep 17 00:00:00 2001 From: grimmauld Date: Mon, 29 Mar 2021 18:19:17 +0200 Subject: [PATCH] Fix even more critical crashes, now on schematics --- .../create/foundation/ponder/PonderWorld.java | 4 ---- .../utility/worldWrappers/WrappedWorld.java | 16 ++++++++++++++-- 2 files changed, 14 insertions(+), 6 deletions(-) diff --git a/src/main/java/com/simibubi/create/foundation/ponder/PonderWorld.java b/src/main/java/com/simibubi/create/foundation/ponder/PonderWorld.java index eafcb0f6a..b9aaf11f6 100644 --- a/src/main/java/com/simibubi/create/foundation/ponder/PonderWorld.java +++ b/src/main/java/com/simibubi/create/foundation/ponder/PonderWorld.java @@ -311,10 +311,6 @@ public class PonderWorld extends SchematicWorld { return true; // fix particle lighting } - @Override - public void markChunkDirty(BlockPos p_175646_1_, TileEntity p_175646_2_) { - } - @Override public boolean isPlayerWithin(double p_217358_1_, double p_217358_3_, double p_217358_5_, double p_217358_7_) { return true; // always enable spawner animations diff --git a/src/main/java/com/simibubi/create/foundation/utility/worldWrappers/WrappedWorld.java b/src/main/java/com/simibubi/create/foundation/utility/worldWrappers/WrappedWorld.java index 327b91f06..a5984048c 100644 --- a/src/main/java/com/simibubi/create/foundation/utility/worldWrappers/WrappedWorld.java +++ b/src/main/java/com/simibubi/create/foundation/utility/worldWrappers/WrappedWorld.java @@ -10,8 +10,6 @@ import javax.annotation.ParametersAreNonnullByDefault; import mcp.MethodsReturnNonnullByDefault; import net.minecraft.block.Block; import net.minecraft.block.BlockState; -import net.minecraft.client.multiplayer.ClientChunkProvider; -import net.minecraft.client.world.ClientWorld; import net.minecraft.entity.Entity; import net.minecraft.entity.player.PlayerEntity; import net.minecraft.fluid.Fluid; @@ -178,4 +176,18 @@ public class WrappedWorld extends World { public float getBrightness(Direction p_230487_1_, boolean p_230487_2_) { return world.getBrightness(p_230487_1_, p_230487_2_); } + + @Override + public void markChunkDirty(BlockPos p_175646_1_, TileEntity p_175646_2_) { + } + + @Override + public boolean isBlockLoaded(BlockPos p_175667_1_) { + return true; + } + + @Override + public void updateComparatorOutputLevel(BlockPos p_175666_1_, Block p_175666_2_) { + return; + } }