Fixes a Spigot 1.19.4 NMS method singature changing

EpicAnchor is affected by that
This commit is contained in:
Christian Koop 2023-04-13 10:57:22 +02:00
parent 1455cf2d1c
commit a3e73be1aa
No known key found for this signature in database
GPG Key ID: 89A8181384E010A3
1 changed files with 2 additions and 1 deletions

View File

@ -13,6 +13,7 @@ import net.minecraft.util.profiling.ProfilerFiller;
import net.minecraft.world.level.BaseSpawner;
import net.minecraft.world.level.ChunkPos;
import net.minecraft.world.level.block.state.BlockState;
import net.minecraft.world.level.chunk.ChunkStatus;
import net.minecraft.world.level.chunk.LevelChunk;
import net.minecraft.world.level.chunk.LevelChunkSection;
import net.minecraft.world.level.material.FluidState;
@ -55,7 +56,7 @@ public class WorldCoreImpl implements WorldCore {
*/
@Override
public void randomTickChunk(org.bukkit.Chunk bukkitChunk, int tickAmount) {
LevelChunk chunk = ((CraftChunk) bukkitChunk).getHandle();
LevelChunk chunk = (LevelChunk) ((CraftChunk) bukkitChunk).getHandle(ChunkStatus.FULL);
ServerLevel world = chunk.q;
ProfilerFiller gameProfilerFiller = world.getProfiler();