Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
4 changes: 1 addition & 3 deletions src/main/java/world/bentobox/level/config/BlockConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -198,7 +197,7 @@ public Map<World, Map<EntityType, Integer>> 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
Expand Down Expand Up @@ -229,7 +228,6 @@ public Integer getValue(World world, Object obj) {
return value;
}
}

// Fall back to the baseline value
return getBlockValues().get(key);
}
Expand Down