Another fix for chat.
This commit is contained in:
parent
90e9c9f640
commit
5afab4fc41
1 changed files with 1 additions and 2 deletions
|
|
@ -86,14 +86,13 @@ public class JsonFileClientUpdateComponent extends ClientUpdateComponent {
|
||||||
|
|
||||||
protected void writeUpdates() {
|
protected void writeUpdates() {
|
||||||
File outputFile;
|
File outputFile;
|
||||||
|
|
||||||
//Handles Updates
|
//Handles Updates
|
||||||
for (DynmapWorld dynmapWorld : plugin.mapManager.worlds.values()) {
|
for (DynmapWorld dynmapWorld : plugin.mapManager.worlds.values()) {
|
||||||
World world = dynmapWorld.world;
|
World world = dynmapWorld.world;
|
||||||
|
|
||||||
JSONObject update = new JSONObject();
|
JSONObject update = new JSONObject();
|
||||||
update.put("timestamp", currentTimestamp);
|
update.put("timestamp", currentTimestamp);
|
||||||
ClientUpdateEvent clientUpdate = new ClientUpdateEvent(lastTimestamp, dynmapWorld, update);
|
ClientUpdateEvent clientUpdate = new ClientUpdateEvent(currentTimestamp - 30000, dynmapWorld, update);
|
||||||
plugin.events.trigger("buildclientupdate", clientUpdate);
|
plugin.events.trigger("buildclientupdate", clientUpdate);
|
||||||
|
|
||||||
outputFile = getStandaloneFile("dynmap_" + world.getName() + ".json");
|
outputFile = getStandaloneFile("dynmap_" + world.getName() + ".json");
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue