From b2811edf99dc662c9f648a3a2ef36c7d007b8413 Mon Sep 17 00:00:00 2001 From: tastybento Date: Mon, 20 Apr 2020 07:59:13 -0700 Subject: [PATCH] AIR had value of 1 instead of 0 in the config. --- src/main/java/world/bentobox/level/config/BlockConfig.java | 2 ++ src/main/resources/blockconfig.yml | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/world/bentobox/level/config/BlockConfig.java b/src/main/java/world/bentobox/level/config/BlockConfig.java index ba61117..b19f2c2 100644 --- a/src/main/java/world/bentobox/level/config/BlockConfig.java +++ b/src/main/java/world/bentobox/level/config/BlockConfig.java @@ -42,6 +42,8 @@ public class BlockConfig { // Update blockvalues to latest settings Arrays.stream(Material.values()).filter(Material::isBlock) .filter(m -> !m.name().startsWith("LEGACY_")) + .filter(m -> !m.isAir()) + .filter(m -> !m.equals(Material.WATER)) .forEach(m -> { if (!blocks.contains(m.name(), true)) { blocks.set(m.name(), 1); diff --git a/src/main/resources/blockconfig.yml b/src/main/resources/blockconfig.yml index f988632..175f4cf 100644 --- a/src/main/resources/blockconfig.yml +++ b/src/main/resources/blockconfig.yml @@ -673,7 +673,7 @@ blocks: YELLOW_WOOL: 2 ZOMBIE_HEAD: 1 ZOMBIE_WALL_HEAD: 1 - AIR: 1 + AIR: 0 BEEHIVE: 1 BEE_NEST: 1 DEAD_BRAIN_CORAL: 1