*crosses fingers for sneaky web edit
Optimize checkIfActive to only check if chunks are loaded if entity is active

This will cut down on the call to areChunksLoaded drastically, which is pretty slow