Fix a possible casting error

This commit is contained in:
James Seibel
2021-02-26 13:18:37 -06:00
parent cfda8c9655
commit f637e5fd44
@@ -119,7 +119,8 @@ public class ClientProxy
@SubscribeEvent
public void chunkLoadEvent(ChunkEvent event)
{
lodWorld = lodBuilder.generateLodChunkAsync((Chunk) event.getChunk());
if (event.getChunk().getClass() == Chunk.class)
lodWorld = lodBuilder.generateLodChunkAsync((Chunk) event.getChunk());
}
/**