mirror of
https://github.com/webbukkit/dynmap.git
synced 2024-11-14 14:25:21 +01:00
Remove API reference for too-new API - too soon to be using it
This commit is contained in:
parent
0d97a93100
commit
6348fbe789
@ -262,7 +262,7 @@ public class MapManager {
|
|||||||
czmax = n.getInteger("czmax", 0);
|
czmax = n.getInteger("czmax", 0);
|
||||||
rendertype = n.getString("rendertype", "");
|
rendertype = n.getString("rendertype", "");
|
||||||
mapname = n.getString("mapname", null);
|
mapname = n.getString("mapname", null);
|
||||||
sender = plug_in.getServer().getConsoleSender();
|
sender = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
public HashMap<String,Object> saveState() {
|
public HashMap<String,Object> saveState() {
|
||||||
@ -329,10 +329,10 @@ public class MapManager {
|
|||||||
if(map_index >= 0) { /* Finished a map? */
|
if(map_index >= 0) { /* Finished a map? */
|
||||||
double msecpertile = (double)timeaccum / (double)((rendercnt>0)?rendercnt:1)/(double)activemapcnt;
|
double msecpertile = (double)timeaccum / (double)((rendercnt>0)?rendercnt:1)/(double)activemapcnt;
|
||||||
if(activemapcnt > 1)
|
if(activemapcnt > 1)
|
||||||
sender.sendMessage(rendertype + " of maps [" + activemaps + "] of '" +
|
sendMessage(rendertype + " of maps [" + activemaps + "] of '" +
|
||||||
world.world.getName() + "' completed - " + rendercnt + " tiles rendered each (" + String.format("%.2f", msecpertile) + " msec/map-tile).");
|
world.world.getName() + "' completed - " + rendercnt + " tiles rendered each (" + String.format("%.2f", msecpertile) + " msec/map-tile).");
|
||||||
else
|
else
|
||||||
sender.sendMessage(rendertype + " of map '" + activemaps + "' of '" +
|
sendMessage(rendertype + " of map '" + activemaps + "' of '" +
|
||||||
world.world.getName() + "' completed - " + rendercnt + " tiles rendered (" + String.format("%.2f", msecpertile) + " msec/tile).");
|
world.world.getName() + "' completed - " + rendercnt + " tiles rendered (" + String.format("%.2f", msecpertile) + " msec/tile).");
|
||||||
}
|
}
|
||||||
found.clear();
|
found.clear();
|
||||||
@ -355,7 +355,7 @@ public class MapManager {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if(map_index >= world.maps.size()) { /* Last one done? */
|
if(map_index >= world.maps.size()) { /* Last one done? */
|
||||||
sender.sendMessage(rendertype + " of '" + world.world.getName() + "' finished.");
|
sendMessage(rendertype + " of '" + world.world.getName() + "' finished.");
|
||||||
cleanup();
|
cleanup();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -527,10 +527,10 @@ public class MapManager {
|
|||||||
if((rendercnt % progressinterval) == 0) {
|
if((rendercnt % progressinterval) == 0) {
|
||||||
double msecpertile = (double)timeaccum / (double)rendercnt / (double)activemapcnt;
|
double msecpertile = (double)timeaccum / (double)rendercnt / (double)activemapcnt;
|
||||||
if(activemapcnt > 1)
|
if(activemapcnt > 1)
|
||||||
sender.sendMessage(rendertype + " of maps [" + activemaps + "] of '" +
|
sendMessage(rendertype + " of maps [" + activemaps + "] of '" +
|
||||||
w.getName() + "' in progress - " + rendercnt + " tiles rendered each (" + String.format("%.2f", msecpertile) + " msec/map-tile).");
|
w.getName() + "' in progress - " + rendercnt + " tiles rendered each (" + String.format("%.2f", msecpertile) + " msec/map-tile).");
|
||||||
else
|
else
|
||||||
sender.sendMessage(rendertype + " of map '" + activemaps + "' of '" +
|
sendMessage(rendertype + " of map '" + activemaps + "' of '" +
|
||||||
w.getName() + "' in progress - " + rendercnt + " tiles rendered (" + String.format("%.2f", msecpertile) + " msec/tile).");
|
w.getName() + "' in progress - " + rendercnt + " tiles rendered (" + String.format("%.2f", msecpertile) + " msec/tile).");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -545,6 +545,15 @@ public class MapManager {
|
|||||||
public void cancelRender() {
|
public void cancelRender() {
|
||||||
cancelled = true;
|
cancelled = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void sendMessage(String msg) {
|
||||||
|
if(sender != null) {
|
||||||
|
sender.sendMessage(msg);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
Log.info(msg);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private class CheckWorldTimes implements Runnable {
|
private class CheckWorldTimes implements Runnable {
|
||||||
|
Loading…
Reference in New Issue
Block a user