Skip to content

Commit

Permalink
Added missing condition for disabled worlds to water flow regulations
Browse files Browse the repository at this point in the history
  • Loading branch information
ceskyDJ committed May 29, 2020
1 parent c83dc37 commit c31e4c2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,12 @@ public void onFromTo(BlockFromToEvent event) {
}
}

if (source.getWorld().getEnvironment() != World.Environment.NETHER) {
World world = source.getWorld();
if (world.getEnvironment() != World.Environment.NETHER) {
return;
}

if (this.configManager.getDisabledWorlds().contains(world.getName())) {
return;
}

Expand Down
2 changes: 1 addition & 1 deletion src/plugin.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: NetherWater
version: 1.0.10
version: 1.0.10.1
description: Allow players to use water in the nether
authors: [Lee Tzilantonis, ceskyDJ]

Expand Down

0 comments on commit c31e4c2

Please sign in to comment.