Merge pull request #2584 from tiagoad/v3.0

Fix for disappearing sign-markers on 1.14 (Issue #2533)
This commit is contained in:
mikeprimm 2019-12-15 00:44:27 -06:00 committed by GitHub
commit d8a21102c2
9 changed files with 127 additions and 9 deletions

View file

@ -145,6 +145,9 @@ public class DynmapPlugin
private boolean isMCPC = false;
private boolean useSaveFolder = true;
private Field displayName = null; // MCPC+ display name
private static final int SIGNPOST_ID = 63;
private static final int WALLSIGN_ID = 68;
private static final String[] TRIGGER_DEFAULTS = { "blockupdate", "chunkpopulate", "chunkgenerate" };
@ -509,6 +512,20 @@ public class DynmapPlugin
}
return -1;
}
@Override
public int isSignAt(String wname, int x, int y, int z) {
int blkid = plugin.getServer().getBlockIDAt(r.wname, r.x, r.y, r.z);
if (blkid == -1)
return -1;
if((blkid == WALLSIGN_ID) || (blkid == SIGNPOST_ID)) {
return 1;
} else {
return 0;
}
}
@Override
public void scheduleServerTask(Runnable run, long delay)