Added 'generate-structure' setting support and WorldCreator property.

Fixes BUKKIT-655 and BUKKIT-592
This commit is contained in:
Eric Stokes
2012-01-29 10:40:45 -07:00
committed by EvilSeph
parent f1a35effb0
commit 3a419481ea
3 changed files with 9 additions and 2 deletions

View File

@@ -978,4 +978,8 @@ public class CraftWorld implements World {
public org.bukkit.WorldType getWorldType() {
return org.bukkit.WorldType.getByName(world.getWorldData().getType().name());
}
public boolean canGenerateStructures() {
return world.getWorldData().o();
}
}