some micro battle maps (thanks to GalaxiaOwner) with some maps by me
This commit is contained in:
@ -117,6 +117,17 @@ public class Parse
|
||||
continue;
|
||||
}
|
||||
|
||||
if(block.getType() == Material.GLASS){
|
||||
//Make it's easier for micro battles map
|
||||
if(getGameType() == GameType.Micro){
|
||||
String name = "20"; //set auto glass
|
||||
if (!_customLocs.containsKey(name)) _customLocs.put(name, new ArrayList<Location>());
|
||||
_customLocs.get(name).add(block.getLocation());
|
||||
//Remove Blocks
|
||||
block.setTypeId(0);
|
||||
}
|
||||
}
|
||||
|
||||
//Signs
|
||||
if (block.getType() == Material.SIGN_POST || block.getType() == Material.WALL_SIGN)
|
||||
{
|
||||
@ -157,6 +168,7 @@ public class Parse
|
||||
block.getRelative(BlockFace.DOWN).setTypeId(0);
|
||||
}
|
||||
}
|
||||
|
||||
else if (block.getType() == Material.LEAVES || block.getType() == Material.LEAVES_2)
|
||||
{
|
||||
if (block.getData() <= 3)
|
||||
|
@ -412,11 +412,13 @@ public class CakeWars extends TeamGame
|
||||
_chestLootModule.register(this);
|
||||
|
||||
// Backwards compatibility with old cake wars maps
|
||||
|
||||
int i = 1;
|
||||
for (Location location : WorldData.GetDataLocs("SILVER"))
|
||||
{
|
||||
WorldData.GetAllCustomLocs().computeIfAbsent("POINT Outer-" + i++ + " GREEN", k -> new ArrayList<>()).add(location);
|
||||
}
|
||||
|
||||
for (Location location : WorldData.GetDataLocs("WHITE"))
|
||||
{
|
||||
WorldData.GetAllCustomLocs().computeIfAbsent("POINT Center GOLD", k -> new ArrayList<>()).add(location);
|
||||
|
Reference in New Issue
Block a user