Skip to content

Commit

Permalink
fix stuck flags on empty world login
Browse files Browse the repository at this point in the history
  • Loading branch information
Ifiht committed Nov 25, 2024
1 parent 36815da commit 9686d61
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ plugins {
}

group = 'org.evlis'
version = '1.0.0'
version = '1.0.1'

def targetJavaVersion = 21

Expand Down
4 changes: 4 additions & 0 deletions src/main/java/org/evlis/lunamatic/events/PlayerJoin.java
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@ public void onPlayerJoin(PlayerJoinEvent event) {
if (time >= 12610) {
NightEffects.ApplyMoonlight(player, MoonPhase.NEW_MOON, (24000 - (int)time));
}
} else {
// Catch for stuck flags during wrong moon-phase..
// TO-DO: find out why this is needed?
ResetFlags.resetAll();
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ public class ResetFlags {
static TotoroDance totoroDance = new TotoroDance();

public static void resetAll() {

GlobalVars.harvestMoonToday = false;
GlobalVars.harvestMoonNow = false;
GlobalVars.bloodMoonToday = false;
Expand Down

0 comments on commit 9686d61

Please sign in to comment.