Skip to content

Commit 8e02cf4

Browse files
authored
Merge pull request #382 from BentoBoxWorld/380_world_block_defs
Allow air to be valued
2 parents 2ef7276 + 5bcc19d commit 8e02cf4

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

src/main/java/world/bentobox/level/calculators/IslandLevelCalculator.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -487,9 +487,6 @@ private void scanAsync(ChunkPair cp) {
487487
private void processBlock(ChunkPair cp, int x, int y, int z, int globalX, int globalZ) {
488488
BlockData blockData = cp.chunkSnapshot.getBlockData(x, y, z);
489489
Material m = blockData.getMaterial();
490-
if (m.isAir()) {
491-
return;
492-
}
493490

494491
boolean belowSeaLevel = seaHeight > 0 && y <= seaHeight;
495492
Location loc = new Location(cp.world, globalX, y, globalZ);

src/main/java/world/bentobox/level/config/BlockConfig.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
import org.bukkit.configuration.file.YamlConfiguration;
2020
import org.bukkit.entity.EntityType;
2121

22-
import world.bentobox.bentobox.BentoBox;
2322
import world.bentobox.bentobox.hooks.ItemsAdderHook;
2423
import world.bentobox.level.Level;
2524

@@ -198,7 +197,7 @@ public Map<World, Map<EntityType, Integer>> getWorldSpawnerValues() {
198197
}
199198

200199
/**
201-
* Retrieves the value associated with a spawner in the specified world,
200+
* Retrieves the value associated with a block in the specified world,
202201
* using world-specific settings if available, or falling back to baseline values.
203202
*
204203
* @param world the world context
@@ -229,7 +228,6 @@ public Integer getValue(World world, Object obj) {
229228
return value;
230229
}
231230
}
232-
233231
// Fall back to the baseline value
234232
return getBlockValues().get(key);
235233
}

0 commit comments

Comments
 (0)