use of net.minecraft.world.level.ChunkPos in project MinecraftForge by MinecraftForge.
the class ModelDataManager method onChunkUnload.
@SubscribeEvent
public static void onChunkUnload(ChunkEvent.Unload event) {
if (!event.getChunk().getWorldForge().isClientSide())
return;
ChunkPos chunk = event.getChunk().getPos();
needModelDataRefresh.remove(chunk);
modelDataCache.remove(chunk);
}
Aggregations