Update for 1.19.4 spigot change

This commit is contained in:
Michael Primm 2023-05-02 23:30:16 -05:00
parent 1ccffb7693
commit d1b95c9ae0

View File

@ -49,6 +49,7 @@ import net.minecraft.world.level.block.Block;
import net.minecraft.world.level.block.BlockFluids; import net.minecraft.world.level.block.BlockFluids;
import net.minecraft.world.level.block.entity.TileEntity; import net.minecraft.world.level.block.entity.TileEntity;
import net.minecraft.world.level.block.state.IBlockData; import net.minecraft.world.level.block.state.IBlockData;
import net.minecraft.world.level.chunk.ChunkStatus;
import java.nio.charset.StandardCharsets; import java.nio.charset.StandardCharsets;
import java.util.ArrayList; import java.util.ArrayList;
@ -336,12 +337,12 @@ public class BukkitVersionHelperSpigot119_4 extends BukkitVersionHelper {
@Override @Override
public long getInhabitedTicks(Chunk c) { public long getInhabitedTicks(Chunk c) {
return ((CraftChunk)c).getHandle().u(); return ((CraftChunk)c).getHandle(ChunkStatus.o).u();
} }
@Override @Override
public Map<?, ?> getTileEntitiesForChunk(Chunk c) { public Map<?, ?> getTileEntitiesForChunk(Chunk c) {
return ((CraftChunk)c).getHandle().i; return ((CraftChunk)c).getHandle(ChunkStatus.o).i;
} }
@Override @Override