mirror of
https://github.com/webbukkit/dynmap.git
synced 2024-12-25 18:17:37 +01:00
Clean up deprecation warning
This commit is contained in:
parent
8e516e944a
commit
3722564e4f
@ -105,8 +105,8 @@ public class ColorScheme {
|
|||||||
boolean israin = false;
|
boolean israin = false;
|
||||||
int idx = split[0].indexOf(':');
|
int idx = split[0].indexOf(':');
|
||||||
if(idx > 0) { /* ID:data - data color */
|
if(idx > 0) { /* ID:data - data color */
|
||||||
id = new Integer(split[0].substring(0, idx));
|
id = Integer.parseInt(split[0].substring(0, idx));
|
||||||
dat = new Integer(split[0].substring(idx+1));
|
dat = Integer.parseInt(split[0].substring(idx+1));
|
||||||
}
|
}
|
||||||
else if(split[0].charAt(0) == '[') { /* Biome color data */
|
else if(split[0].charAt(0) == '[') { /* Biome color data */
|
||||||
String bio = split[0].substring(1);
|
String bio = split[0].substring(1);
|
||||||
@ -149,7 +149,7 @@ public class ColorScheme {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
id = new Integer(split[0]);
|
id = Integer.parseInt(split[0]);
|
||||||
}
|
}
|
||||||
if((!isbiome) && (id >= colors.length)) {
|
if((!isbiome) && (id >= colors.length)) {
|
||||||
Color[][] newcolors = new Color[id+1][];
|
Color[][] newcolors = new Color[id+1][];
|
||||||
|
@ -21,7 +21,7 @@ import org.dynmap.utils.BufferOutputStream;
|
|||||||
public abstract class MapStorage {
|
public abstract class MapStorage {
|
||||||
private static Object lock = new Object();
|
private static Object lock = new Object();
|
||||||
private static HashMap<String, Integer> filelocks = new HashMap<String, Integer>();
|
private static HashMap<String, Integer> filelocks = new HashMap<String, Integer>();
|
||||||
private static final Integer WRITELOCK = new Integer(-1);
|
private static final Integer WRITELOCK = (-1);
|
||||||
protected File baseStandaloneDir;
|
protected File baseStandaloneDir;
|
||||||
|
|
||||||
protected long serverID;
|
protected long serverID;
|
||||||
|
Loading…
Reference in New Issue
Block a user