mirror of
https://github.com/webbukkit/dynmap.git
synced 2024-11-28 05:05:16 +01:00
Merge remote-tracking branch 'alron/master'
This commit is contained in:
commit
437e82387b
6
pom.xml
6
pom.xml
@ -37,11 +37,9 @@
|
|||||||
</build>
|
</build>
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.nijikokun.bukkit.Permissions.Permissions</groupId>
|
<groupId>com.nijikokun.bukkit.Permissions</groupId>
|
||||||
<artifactId>Permissions</artifactId>
|
<artifactId>Permissions</artifactId>
|
||||||
<version>2.1</version>
|
<version>2.5.4</version>
|
||||||
<scope>system</scope>
|
|
||||||
<systemPath>${project.basedir}/../Permissions.jar</systemPath>
|
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.bukkit</groupId>
|
<groupId>org.bukkit</groupId>
|
||||||
|
@ -14,7 +14,7 @@ import org.dynmap.ColorScheme;
|
|||||||
import org.dynmap.debug.Debug;
|
import org.dynmap.debug.Debug;
|
||||||
|
|
||||||
public class DefaultTileRenderer implements MapTileRenderer {
|
public class DefaultTileRenderer implements MapTileRenderer {
|
||||||
protected static Color translucent = new Color(0, 0, 0, 0);
|
protected static final Color translucent = new Color(0, 0, 0, 0);
|
||||||
private String name;
|
private String name;
|
||||||
protected int maximumHeight = 127;
|
protected int maximumHeight = 127;
|
||||||
private ColorScheme colorScheme;
|
private ColorScheme colorScheme;
|
||||||
|
@ -32,8 +32,15 @@ public class ClientConfigurationHandler implements HttpHandler {
|
|||||||
response.fields.put("Content-Length", Integer.toString(cachedConfiguration.length));
|
response.fields.put("Content-Length", Integer.toString(cachedConfiguration.length));
|
||||||
response.status = HttpStatus.OK;
|
response.status = HttpStatus.OK;
|
||||||
|
|
||||||
BufferedOutputStream out = new BufferedOutputStream(response.getBody());
|
BufferedOutputStream out = null;
|
||||||
|
try {
|
||||||
|
out = new BufferedOutputStream(response.getBody());
|
||||||
out.write(cachedConfiguration);
|
out.write(cachedConfiguration);
|
||||||
out.flush();
|
out.flush();
|
||||||
}
|
}
|
||||||
|
finally
|
||||||
|
{
|
||||||
|
out.close();
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -87,8 +87,15 @@ public class ClientUpdateHandler implements HttpHandler {
|
|||||||
response.fields.put(HttpField.ContentLength, Integer.toString(bytes.length));
|
response.fields.put(HttpField.ContentLength, Integer.toString(bytes.length));
|
||||||
response.status = HttpStatus.OK;
|
response.status = HttpStatus.OK;
|
||||||
|
|
||||||
BufferedOutputStream out = new BufferedOutputStream(response.getBody());
|
BufferedOutputStream out = null;
|
||||||
|
try {
|
||||||
|
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