diff options
| author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-04-02 21:58:15 +0200 |
|---|---|---|
| committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-04-02 21:58:15 +0200 |
| commit | e13d93cf0fd8ddea0251ce002bc36a738c46c955 (patch) | |
| tree | c33d012a52c27f0a41cad9e0ffcd23f93b2b8d6d | |
| parent | e7615f72632c8ca6a27e5c54f7b86e437c28be59 (diff) | |
| download | SkyHanni-e13d93cf0fd8ddea0251ce002bc36a738c46c955.tar.gz SkyHanni-e13d93cf0fd8ddea0251ce002bc36a738c46c955.tar.bz2 SkyHanni-e13d93cf0fd8ddea0251ce002bc36a738c46c955.zip | |
Fixed a bug where crops per minute could not be calculated when entering the server for the first time with skyhanni
| -rw-r--r-- | src/main/java/at/hannibal2/skyhanni/data/GardenCropMilestones.kt | 4 |
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) |
