Skip to content

Commit

Permalink
Potential fix for generators overriding existing blocks in the world (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
OmerBenGera committed Jan 13, 2022
1 parent 2ef5e77 commit ec7945d
Showing 1 changed file with 5 additions and 0 deletions.
Expand Up @@ -48,6 +48,11 @@ public void onBlockFormEvent(BlockFromToEvent e) {
if (!e.getBlock().getType().name().contains("LAVA") || !hasWaterNearby(block))
return;

// Should fix solid blocks from generating custom blocks
// https://github.com/BG-Software-LLC/SuperiorSkyblock2/issues/837
if (block.getType().isSolid())
return;

World.Environment environment = block.getWorld().getEnvironment();
Map<String, Integer> generatorAmounts = island.getGeneratorAmounts(environment);

Expand Down

0 comments on commit ec7945d

Please sign in to comment.