From 5778611227b7125c682f406c69a419a04a6fd888 Mon Sep 17 00:00:00 2001 From: FrozenCow Date: Sat, 26 Feb 2011 18:23:35 +0100 Subject: [PATCH] Fixed JsonTimerTask. --- src/main/java/org/dynmap/JsonTimerTask.java | 4 ++-- src/main/java/org/dynmap/MapManager.java | 2 -- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/main/java/org/dynmap/JsonTimerTask.java b/src/main/java/org/dynmap/JsonTimerTask.java index 1c355b0f..b9aba3c0 100644 --- a/src/main/java/org/dynmap/JsonTimerTask.java +++ b/src/main/java/org/dynmap/JsonTimerTask.java @@ -35,7 +35,7 @@ class JsonTimerTask extends TimerTask { update.timestamp = current; update.servertime = world.getTime() % 24000; - Player[] players = mapManager.playerList.getVisiblePlayers(); + Player[] players = plugin.playerList.getVisiblePlayers(); update.players = new Client.Player[players.length]; for (int i = 0; i < players.length; i++) { Player p = players[i]; @@ -63,4 +63,4 @@ class JsonTimerTask extends TimerTask { } } } -} \ No newline at end of file +} diff --git a/src/main/java/org/dynmap/MapManager.java b/src/main/java/org/dynmap/MapManager.java index aa24dffb..ea5dfb7a 100644 --- a/src/main/java/org/dynmap/MapManager.java +++ b/src/main/java/org/dynmap/MapManager.java @@ -23,8 +23,6 @@ public class MapManager { public Map worlds = new HashMap(); public Map inactiveworlds = new HashMap(); - - public PlayerList playerList; /* lock for our data structures */ public static final Object lock = new Object();