Added many debug commands

This commit is contained in:
simon
2018-02-25 11:55:53 -05:00
parent 95a14ad1ab
commit 6a1519d97d
2 changed files with 206 additions and 11 deletions

View File

@@ -6,7 +6,6 @@ import com.mongodb.DBObject;
import net.simon987.server.GameServer;
import net.simon987.server.game.GameObject;
import net.simon987.server.game.Updatable;
import org.json.simple.JSONArray;
import org.json.simple.JSONObject;
import java.awt.*;
@@ -112,14 +111,6 @@ public class Factory extends GameObject implements Updatable {
json.put("y", getY());
json.put("t", ID);
JSONArray tmpNpcArray = new JSONArray();
for (NonPlayerCharacter npc : npcs) {
tmpNpcArray.add(npc.getObjectId());
}
json.put("n", tmpNpcArray);
return json;
}