mirror of
https://github.com/webbukkit/dynmap.git
synced 2024-08-20 03:12:46 +02:00
Prevent trap if townBlocks is undefined in towny town file
This commit is contained in:
parent
fba69e3d19
commit
a476b66c2f
|
@ -119,6 +119,8 @@ public class TownyConfigHandler {
|
||||||
}
|
}
|
||||||
/* Get block list */
|
/* Get block list */
|
||||||
String blocks = p.getProperty("townBlocks");
|
String blocks = p.getProperty("townBlocks");
|
||||||
|
if(blocks == null) /* Skip if no blocks */
|
||||||
|
return null;
|
||||||
String[] nodes = blocks.split(";"); /* Split into list */
|
String[] nodes = blocks.split(";"); /* Split into list */
|
||||||
TileFlags blks = new TileFlags();
|
TileFlags blks = new TileFlags();
|
||||||
LinkedList<int[]> nodevals = new LinkedList<int[]>();
|
LinkedList<int[]> nodevals = new LinkedList<int[]>();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user