mirror of
https://github.com/webbukkit/dynmap.git
synced 2024-12-25 10:07:37 +01:00
Handle invalid block state from bad mods - avoid exception (#3231)
This commit is contained in:
parent
17bf9e982f
commit
6680928460
@ -959,7 +959,7 @@ public class DynmapPlugin
|
||||
BlockUpdateRec r = blockupdatequeue.remove();
|
||||
BlockState bs = r.w.getBlockState(new BlockPos(r.x, r.y, r.z));
|
||||
int idx = Block.BLOCK_STATE_IDS.getId(bs);
|
||||
if(!org.dynmap.hdmap.HDBlockModels.isChangeIgnoredBlock(stateByID[idx])) {
|
||||
if((idx >= 0) && (!org.dynmap.hdmap.HDBlockModels.isChangeIgnoredBlock(stateByID[idx]))) {
|
||||
if(onblockchange_with_id)
|
||||
mapManager.touch(r.wid, r.x, r.y, r.z, "blockchange[" + idx + "]");
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user