Band-aid for exceptions in unsupported 'running in client' scenario
This commit is contained in:
parent
6ec05d6ac4
commit
27feeb2657
2 changed files with 2 additions and 0 deletions
|
|
@ -1797,6 +1797,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 ServerLevel)) return; // band-aid to prevent errors in unsupported 'running in client' scenario
|
||||||
ForgeWorld fw = getWorld((ServerLevel)r.w, false);
|
ForgeWorld fw = getWorld((ServerLevel)r.w, false);
|
||||||
if (fw == null) return;
|
if (fw == null) return;
|
||||||
r.wid = fw.getName();
|
r.wid = fw.getName();
|
||||||
|
|
|
||||||
|
|
@ -1797,6 +1797,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 ServerLevel)) return; // band-aid to prevent errors in unsupported 'running in client' scenario
|
||||||
ForgeWorld fw = getWorld((ServerLevel)r.w, false);
|
ForgeWorld fw = getWorld((ServerLevel)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