ago1024 / WurmServerModLauncher

Wurm Unlimited Mod Launcher
59 stars 21 forks source link

Fix for serverpacks sometimes leaving VisionArea in buggy state after refresh #46

Closed bdew closed 6 years ago

bdew commented 6 years ago

This fixes a bug happens when a refresh command is sent after a players VisionArea is already fully initialized.

When this happens the player will not be able to use gm teleport wands, and minedoors will stop opening for them. This also produces messages like that in the log:

Auriel could not teleport due to VisionArea VisionArea [initialised: false, resumed: false, sentCloseStrips: false, sentFarStrips: false]

(note all flags being false, it will stay like that until the player relogs)

I've also moved the method to a separate class as with my addition it was causing a bunch of classes to be frozen when the mod class was loaded.