Skip to content

Commit

Permalink
Added auto-clear superflat option to config.yml.
Browse files Browse the repository at this point in the history
Removed debug.
  • Loading branch information
tastybento committed May 5, 2016
1 parent 5471821 commit 6ed41fd
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
6 changes: 6 additions & 0 deletions config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -519,6 +519,12 @@ general:
# If true, players can push each other (default 1.9 behavior) if false,
# players will not be able to push. Recommendation is to leave this true.
allowpushing: true

# Recover super flat - if the generator does not run for some reason, you can get
# super flat chunks (grass). To remove automatically, select this option. Turn off
# if there are no more because it may cause lag.
# This will regenerate any chunks with bedrock at y=0 when they are loaded
recoversuperflat: false

# Config.yml version. DO NOT EDIT. This number only changes if the latest
# plugin config has been updated. If a new config is detected, it will be
Expand Down
8 changes: 4 additions & 4 deletions src/com/wasteofplastic/askyblock/schematics/IslandBlock.java
Original file line number Diff line number Diff line change
Expand Up @@ -278,19 +278,19 @@ public void setFlowerPot(Map<String, Tag> map){
* @param tileData
*/
public void setSpawnerType(Map<String, Tag> tileData) {
Bukkit.getLogger().info("DEBUG: " + tileData.toString());
//Bukkit.getLogger().info("DEBUG: " + tileData.toString());
String creatureType = "";
if (tileData.containsKey("EntityId")) {
creatureType = ((StringTag) tileData.get("EntityId")).getValue().toUpperCase();
} else if (tileData.containsKey("SpawnData")) {
// 1.9 format
Map<String,Tag> spawnData = ((CompoundTag) tileData.get("SpawnData")).getValue();
Bukkit.getLogger().info("DEBUG: " + spawnData.toString());
//Bukkit.getLogger().info("DEBUG: " + spawnData.toString());
if (spawnData.containsKey("id")) {
creatureType = ((StringTag) spawnData.get("id")).getValue().toUpperCase();
}
}
Bukkit.getLogger().info("DEBUG: creature type = " + creatureType);
//Bukkit.getLogger().info("DEBUG: creature type = " + creatureType);
if (WEtoME.containsKey(creatureType)) {
spawnerBlockType = WEtoME.get(creatureType);
} else {
Expand All @@ -300,7 +300,7 @@ public void setSpawnerType(Map<String, Tag> tileData) {
Bukkit.getLogger().severe("I don't know what a " + creatureType + " is... Skipping spawner setting.");
}
}
Bukkit.getLogger().info("DEBUG: spawnerblock type = " + spawnerBlockType);
//Bukkit.getLogger().info("DEBUG: spawnerblock type = " + spawnerBlockType);
}

/**
Expand Down

0 comments on commit 6ed41fd

Please sign in to comment.