Fix even more critical crashes, now on schematics

This commit is contained in:
grimmauld 2021-03-29 18:19:17 +02:00
parent 69f4c9f8ad
commit dadde271e4
2 changed files with 14 additions and 6 deletions

View file

@ -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

View file

@ -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;
}
}