Simple Chunkloader [FABRIC]

Simple Chunkloader [FABRIC]

27.4k Downloads

NPE carnival

RungeCC opened this issue ยท 0 comments

commented

If there is no entry in FORCELOADEDCHUNK(i.e., in this level no ChunkerLoaderBlock), the code below will throw millions of NPE:

public static boolean containsChunks(String world, long chunk)
	{
		try {
			return FORCELOADEDCHUNKS.get(world).contains(chunk);
		}
		catch (Exception e)
		{

		}
		return false;
	}

as you inject this method into shouldTick method which evaluates once each tick, may cause seriously performance issue.

image