mirror of
https://github.com/webbukkit/dynmap.git
synced 2024-11-27 12:45:59 +01:00
Band-aid for exceptions in unsupported 'running in client' scenario
This commit is contained in:
parent
ab76953294
commit
93c9ab0b5b
@ -1797,6 +1797,7 @@ public class DynmapPlugin
|
||||
if(!onblockchange) return;
|
||||
BlockUpdateRec r = new BlockUpdateRec();
|
||||
r.w = event.getWorld();
|
||||
if(!(r.w instanceof ServerLevel)) return; // band-aid to prevent errors in unsupported 'running in client' scenario
|
||||
ForgeWorld fw = getWorld((ServerLevel)r.w, false);
|
||||
if (fw == null) return;
|
||||
r.wid = fw.getName();
|
||||
|
@ -1797,6 +1797,7 @@ public class DynmapPlugin
|
||||
if(!onblockchange) return;
|
||||
BlockUpdateRec r = new BlockUpdateRec();
|
||||
r.w = event.getWorld();
|
||||
if(!(r.w instanceof ServerLevel)) return; // band-aid to prevent errors in unsupported 'running in client' scenario
|
||||
ForgeWorld fw = getWorld((ServerLevel)r.w, false);
|
||||
if (fw == null) return;
|
||||
r.wid = fw.getName();
|
||||
|
Loading…
Reference in New Issue
Block a user