Add ClientWorld hack
This commit is contained in:
parent
4e6ce35eb1
commit
2bce974be8
1 changed files with 1 additions and 0 deletions
|
|
@ -1823,6 +1823,7 @@ public class DynmapPlugin
|
||||||
if(!onblockchange) return;
|
if(!onblockchange) return;
|
||||||
BlockUpdateRec r = new BlockUpdateRec();
|
BlockUpdateRec r = new BlockUpdateRec();
|
||||||
r.w = event.getWorld();
|
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);
|
ForgeWorld fw = getWorld((IServerWorld)r.w, false);
|
||||||
if (fw == null) return;
|
if (fw == null) return;
|
||||||
r.wid = fw.getName();
|
r.wid = fw.getName();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue