mirror of
https://github.com/webbukkit/dynmap.git
synced 2025-01-13 03:10:39 +01:00
Removed some warnings, redisabled BufferedOutputStream closing.
This commit is contained in:
parent
8105a1d2a5
commit
6c6d29a402
@ -64,7 +64,7 @@ class JsonTimerTask extends TimerTask {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (jsonMsgs != null) {
|
if (jsonMsgs != null) {
|
||||||
Iterator iter = jsonMsgs.iterator();
|
Iterator<?> iter = jsonMsgs.iterator();
|
||||||
while (iter.hasNext()) {
|
while (iter.hasNext()) {
|
||||||
JSONObject o = (JSONObject) iter.next();
|
JSONObject o = (JSONObject) iter.next();
|
||||||
if (Long.parseLong(String.valueOf(o.get("timestamp"))) >= (lastTimestamp)) {
|
if (Long.parseLong(String.valueOf(o.get("timestamp"))) >= (lastTimestamp)) {
|
||||||
|
@ -144,7 +144,7 @@ public class KzedMap extends MapType {
|
|||||||
KzedMapTile t = (KzedMapTile) tile;
|
KzedMapTile t = (KzedMapTile) tile;
|
||||||
|
|
||||||
int ix = KzedMap.anchorx + t.px / 2 + t.py / 2;
|
int ix = KzedMap.anchorx + t.px / 2 + t.py / 2;
|
||||||
int iy = 127;
|
//int iy = 127;
|
||||||
int iz = KzedMap.anchorz + t.px / 2 - t.py / 2;
|
int iz = KzedMap.anchorz + t.px / 2 - t.py / 2;
|
||||||
|
|
||||||
int x1 = ix - KzedMap.tileHeight / 2;
|
int x1 = ix - KzedMap.tileHeight / 2;
|
||||||
|
@ -33,14 +33,8 @@ public class ClientConfigurationHandler implements HttpHandler {
|
|||||||
response.status = HttpStatus.OK;
|
response.status = HttpStatus.OK;
|
||||||
|
|
||||||
BufferedOutputStream out = null;
|
BufferedOutputStream out = null;
|
||||||
try {
|
out = new BufferedOutputStream(response.getBody());
|
||||||
out = new BufferedOutputStream(response.getBody());
|
out.write(cachedConfiguration);
|
||||||
out.write(cachedConfiguration);
|
out.flush();
|
||||||
out.flush();
|
|
||||||
}
|
|
||||||
finally
|
|
||||||
{
|
|
||||||
out.close();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -88,14 +88,8 @@ public class ClientUpdateHandler implements HttpHandler {
|
|||||||
response.status = HttpStatus.OK;
|
response.status = HttpStatus.OK;
|
||||||
|
|
||||||
BufferedOutputStream out = null;
|
BufferedOutputStream out = null;
|
||||||
try {
|
out = new BufferedOutputStream(response.getBody());
|
||||||
out = new BufferedOutputStream(response.getBody());
|
out.write(bytes);
|
||||||
out.write(bytes);
|
out.flush();
|
||||||
out.flush();
|
|
||||||
}
|
|
||||||
finally
|
|
||||||
{
|
|
||||||
out.close();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user