Prevent trap if townBlocks is undefined in towny town file
This commit is contained in:
parent
0bd55b76d8
commit
dcdcdd88aa
1 changed files with 2 additions and 0 deletions
|
|
@ -119,6 +119,8 @@ public class TownyConfigHandler {
|
|||
}
|
||||
/* Get block list */
|
||||
String blocks = p.getProperty("townBlocks");
|
||||
if(blocks == null) /* Skip if no blocks */
|
||||
return null;
|
||||
String[] nodes = blocks.split(";"); /* Split into list */
|
||||
TileFlags blks = new TileFlags();
|
||||
LinkedList<int[]> nodevals = new LinkedList<int[]>();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue