mirror of
https://github.com/BentoBoxWorld/Boxed.git
synced 2025-01-06 18:47:52 +01:00
parent
7c12c902fe
commit
1452372dcf
@ -261,6 +261,9 @@ public class NewAreaListener implements Listener {
|
|||||||
|
|
||||||
private void place(ConfigurationSection section, Location center, Environment env) {
|
private void place(ConfigurationSection section, Location center, Environment env) {
|
||||||
World world = env.equals(Environment.NORMAL) ? addon.getOverWorld() : addon.getNetherWorld();
|
World world = env.equals(Environment.NORMAL) ? addon.getOverWorld() : addon.getNetherWorld();
|
||||||
|
if (world == null) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
// Loop through the structures in the file - there could be more than one
|
// Loop through the structures in the file - there could be more than one
|
||||||
for (String vector : section.getKeys(false)) {
|
for (String vector : section.getKeys(false)) {
|
||||||
StructureRotation rot = StructureRotation.NONE;
|
StructureRotation rot = StructureRotation.NONE;
|
||||||
@ -423,7 +426,7 @@ public class NewAreaListener implements Listener {
|
|||||||
case "minecraft:village/common/cows" -> EntityType.COW;
|
case "minecraft:village/common/cows" -> EntityType.COW;
|
||||||
case "minecraft:village/common/iron_golem" -> EntityType.IRON_GOLEM;
|
case "minecraft:village/common/iron_golem" -> EntityType.IRON_GOLEM;
|
||||||
case "minecraft:village/common/butcher_animals", "minecraft:village/common/animals" -> BUTCHER_ANIMALS.get(rand.nextInt(3));
|
case "minecraft:village/common/butcher_animals", "minecraft:village/common/animals" -> BUTCHER_ANIMALS.get(rand.nextInt(3));
|
||||||
default -> null;
|
default -> null;
|
||||||
};
|
};
|
||||||
// Boxed
|
// Boxed
|
||||||
if (type == null && bjb.getPool().startsWith("minecraft:boxed/")) {
|
if (type == null && bjb.getPool().startsWith("minecraft:boxed/")) {
|
||||||
|
Loading…
Reference in New Issue
Block a user