From 5bcc19d25608b9b3ecd8695d9cc1bbecba85b33a Mon Sep 17 00:00:00 2001 From: tastybento Date: Sat, 2 Aug 2025 09:08:45 -0700 Subject: [PATCH] Allow air to be valued --- .../bentobox/level/calculators/IslandLevelCalculator.java | 3 --- src/main/java/world/bentobox/level/config/BlockConfig.java | 4 +--- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/src/main/java/world/bentobox/level/calculators/IslandLevelCalculator.java b/src/main/java/world/bentobox/level/calculators/IslandLevelCalculator.java index 639bcdc..a8005bd 100644 --- a/src/main/java/world/bentobox/level/calculators/IslandLevelCalculator.java +++ b/src/main/java/world/bentobox/level/calculators/IslandLevelCalculator.java @@ -487,9 +487,6 @@ private void scanAsync(ChunkPair cp) { private void processBlock(ChunkPair cp, int x, int y, int z, int globalX, int globalZ) { BlockData blockData = cp.chunkSnapshot.getBlockData(x, y, z); Material m = blockData.getMaterial(); - if (m.isAir()) { - return; - } boolean belowSeaLevel = seaHeight > 0 && y <= seaHeight; Location loc = new Location(cp.world, globalX, y, globalZ); diff --git a/src/main/java/world/bentobox/level/config/BlockConfig.java b/src/main/java/world/bentobox/level/config/BlockConfig.java index 95d1217..eaaff51 100644 --- a/src/main/java/world/bentobox/level/config/BlockConfig.java +++ b/src/main/java/world/bentobox/level/config/BlockConfig.java @@ -19,7 +19,6 @@ import org.bukkit.configuration.file.YamlConfiguration; import org.bukkit.entity.EntityType; -import world.bentobox.bentobox.BentoBox; import world.bentobox.bentobox.hooks.ItemsAdderHook; import world.bentobox.level.Level; @@ -198,7 +197,7 @@ public Map> getWorldSpawnerValues() { } /** - * Retrieves the value associated with a spawner in the specified world, + * Retrieves the value associated with a block in the specified world, * using world-specific settings if available, or falling back to baseline values. * * @param world the world context @@ -229,7 +228,6 @@ public Integer getValue(World world, Object obj) { return value; } } - // Fall back to the baseline value return getBlockValues().get(key); }