mirror of
https://github.com/webbukkit/dynmap.git
synced 2024-11-23 18:55:14 +01:00
Add ClientWorld hack
This commit is contained in:
parent
8e27d5defd
commit
e0619ec650
@ -1823,6 +1823,7 @@ public class DynmapPlugin
|
||||
if(!onblockchange) return;
|
||||
BlockUpdateRec r = new BlockUpdateRec();
|
||||
r.w = event.getWorld();
|
||||
if(!(r.w instanceof ServerWorld)) return; // band-aid to prevent errors in unsupported 'running in client' scenario
|
||||
ForgeWorld fw = getWorld((IServerWorld)r.w, false);
|
||||
if (fw == null) return;
|
||||
r.wid = fw.getName();
|
||||
|
Loading…
Reference in New Issue
Block a user