Remove lava generation from clans maps
This commit is contained in:
parent
567b501dfb
commit
640902169c
@ -99,6 +99,7 @@ public class ClansGenerator extends JavaPlugin implements Runnable, Listener
|
|||||||
getServer().getPluginManager().registerEvents(this, this);
|
getServer().getPluginManager().registerEvents(this, this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@SuppressWarnings("deprecation")
|
||||||
@EventHandler
|
@EventHandler
|
||||||
public void onPopulate(ChunkPopulateEvent event)
|
public void onPopulate(ChunkPopulateEvent event)
|
||||||
{
|
{
|
||||||
@ -117,6 +118,27 @@ public class ClansGenerator extends JavaPlugin implements Runnable, Listener
|
|||||||
{
|
{
|
||||||
getLogger().info("Removing dungeon pieces");
|
getLogger().info("Removing dungeon pieces");
|
||||||
}
|
}
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
if (block.getType() == Material.LAVA)
|
||||||
|
{
|
||||||
|
byte data = block.getData();
|
||||||
|
block.setTypeIdAndData(Material.WATER.getId(), data, false);
|
||||||
|
if (_debug)
|
||||||
|
{
|
||||||
|
getLogger().info("Removing lava");
|
||||||
|
}
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
if (block.getType() == Material.STATIONARY_LAVA)
|
||||||
|
{
|
||||||
|
byte data = block.getData();
|
||||||
|
block.setTypeIdAndData(Material.STATIONARY_WATER.getId(), data, false);
|
||||||
|
if (_debug)
|
||||||
|
{
|
||||||
|
getLogger().info("Removing lava");
|
||||||
|
}
|
||||||
|
continue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user