Skip to content

Commit

Permalink
Merge pull request #21 from ceskyDJ/development
Browse files Browse the repository at this point in the history
Small fixes: damaging agent, pom.xml
  • Loading branch information
ceskyDJ authored Jul 29, 2021
2 parents d57a6da + 3dd8f0b commit 4e84511
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@

<repository>
<id>sk89q-repo</id>
<url>http://maven.enginehub.org/repo/</url>
<url>https://maven.enginehub.org/repo/</url>
</repository>

<repository>
Expand Down
4 changes: 3 additions & 1 deletion src/main/java/cz/ceskydj/netherwater/NetherWater.java
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,9 @@ public void onEnable() {
scheduler.scheduleSyncRepeatingTask(this, new WaterAnimationAgent(this), 0L, 60L);
}
// Mob damaging
scheduler.scheduleSyncRepeatingTask(this, new MobDamagingAgent(this), 0L, 20L);
if (this.configManager.isMobDamagingEnabled() || this.configManager.isPlayerDamagingEnabled()) {
scheduler.scheduleSyncRepeatingTask(this, new MobDamagingAgent(this), 0L, 20L);
}
// WorldEdit changes batch parser
if (this.worldEdit != null) {
scheduler.scheduleSyncRepeatingTask(this, new WorldEditChangesAgent(this), 0L, 20L);
Expand Down

0 comments on commit 4e84511

Please sign in to comment.