From c9751dad257de365414ae3d2894a1f34b2245d3e Mon Sep 17 00:00:00 2001
From: ceskyDJ <48548230+ceskyDJ@users.noreply.github.com>
Date: Sat, 5 Jun 2021 02:06:55 +0200
Subject: [PATCH 1/2] Changed sk89q-repo url to HTTPS
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index 66bc65c..d38e4ad 100644
--- a/pom.xml
+++ b/pom.xml
@@ -50,7 +50,7 @@
sk89q-repo
- http://maven.enginehub.org/repo/
+ https://maven.enginehub.org/repo/
From 3dd8f0b06a4cc7f28b24649e1fc7d9d62bfd35d2 Mon Sep 17 00:00:00 2001
From: ceskyDJ <48548230+ceskyDJ@users.noreply.github.com>
Date: Sat, 5 Jun 2021 16:49:17 +0200
Subject: [PATCH 2/2] Do not run damaging agent if damaging is turned off by
config
---
src/main/java/cz/ceskydj/netherwater/NetherWater.java | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/main/java/cz/ceskydj/netherwater/NetherWater.java b/src/main/java/cz/ceskydj/netherwater/NetherWater.java
index 5f694f8..7eef4d1 100644
--- a/src/main/java/cz/ceskydj/netherwater/NetherWater.java
+++ b/src/main/java/cz/ceskydj/netherwater/NetherWater.java
@@ -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);