-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed potential concurrency issue with timer
Changed duration of Temtem hunt from long to AtomicLong to avoid concurrency issues when updating timer at the same time as trying to read time to update Temtem/h Fixed temtem/h not getting set back to 0 when all Temtem in table have been removed
- Loading branch information
Showing
5 changed files
with
19 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
{"mainWindowWidth":603,"mainWindowHeight":215,"timeToLumaProbability":0.5,"saiparkMode":true,"saiparkTemtem1":"Ganki","saiparkTemtem2":"Saipat","saiparkTemtem1ChanceMultiplyer":2.5,"saiparkTemtem2ChanceMultiplyer":2.5} | ||
{"mainWindowWidth":603,"mainWindowHeight":271,"timeToLumaProbability":0.5,"saiparkMode":false,"saiparkTemtem1":"Ganki","saiparkTemtem2":"Saipat","saiparkTemtem1ChanceMultiplyer":2.5,"saiparkTemtem2ChanceMultiplyer":2.5} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,10 @@ | ||
package temtemTableData; | ||
|
||
import java.util.concurrent.atomic.AtomicLong; | ||
|
||
public class TimerData { | ||
|
||
public int temtemCount=0; | ||
public long durationTime=0; | ||
public AtomicLong durationTime; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters