aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-04-02 21:58:15 +0200
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-04-02 21:58:15 +0200
commit57efe36b45eb81aeea505b1aa8579e0d8cc760a7 (patch)
treec33d012a52c27f0a41cad9e0ffcd23f93b2b8d6d /src/main/java/at/hannibal2
parent479da66e2d7fcfb5c0bc432f26a01185f36ef8ba (diff)
downloadskyhanni-57efe36b45eb81aeea505b1aa8579e0d8cc760a7.tar.gz
skyhanni-57efe36b45eb81aeea505b1aa8579e0d8cc760a7.tar.bz2
skyhanni-57efe36b45eb81aeea505b1aa8579e0d8cc760a7.zip
Fixed a bug where crops per minute could not be calculated when entering the server for the first time with skyhanni
Diffstat (limited to 'src/main/java/at/hannibal2')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/data/GardenCropMilestones.kt4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/data/GardenCropMilestones.kt b/src/main/java/at/hannibal2/skyhanni/data/GardenCropMilestones.kt
index 5294d79a1..5d9fb4713 100644
--- a/src/main/java/at/hannibal2/skyhanni/data/GardenCropMilestones.kt
+++ b/src/main/java/at/hannibal2/skyhanni/data/GardenCropMilestones.kt
@@ -3,9 +3,9 @@ package at.hannibal2.skyhanni.data
import at.hannibal2.skyhanni.SkyHanniMod
import at.hannibal2.skyhanni.events.CropMilestoneUpdateEvent
import at.hannibal2.skyhanni.events.InventoryOpenEvent
-import at.hannibal2.skyhanni.events.ProfileJoinEvent
import at.hannibal2.skyhanni.features.garden.CropType
import at.hannibal2.skyhanni.utils.ItemUtils.getLore
+import net.minecraftforge.event.world.WorldEvent
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent
import java.util.regex.Pattern
@@ -27,7 +27,7 @@ class GardenCropMilestones {
// }
@SubscribeEvent
- fun onProfileJoin(event: ProfileJoinEvent) {
+ fun onWorldChange(event: WorldEvent.Load) {
if (cropCounter.isEmpty()) {
for (crop in CropType.values()) {
crop.setCounter(0)