All of the sudden, the event horizon persists.

Is it because of the !world.isRemote instead of just world.isRemote?