Skip to content

Commit

Permalink
Fixed cooldown requirement (#360)
Browse files Browse the repository at this point in the history
* Fixed:
 - `Requirement - cooldown` was not working properly

Refactors:
 - Minor refactors to `BlockListener.process` method for better readability

* Clarified that requirement value is in seconds

* - Moved `setNewPhase` back to `CheckPhase` class
 - Fixed tests
 - Refactored test run args as they were weirdly formatted

* Removed unused imports

---------

Co-authored-by: tastybento <[email protected]>
  • Loading branch information
Baterka and tastybento authored Nov 25, 2023
1 parent 8cf86e4 commit b6b0b53
Show file tree
Hide file tree
Showing 13 changed files with 584 additions and 558 deletions.
21 changes: 7 additions & 14 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -292,26 +292,19 @@
--add-opens java.base/java.math=ALL-UNNAMED
--add-opens java.base/java.io=ALL-UNNAMED
--add-opens java.base/java.util=ALL-UNNAMED
--add-opens
java.base/java.util.stream=ALL-UNNAMED
--add-opens java.base/java.util.stream=ALL-UNNAMED
--add-opens java.base/java.text=ALL-UNNAMED
--add-opens
java.base/java.util.regex=ALL-UNNAMED
--add-opens
java.base/java.nio.channels.spi=ALL-UNNAMED
--add-opens java.base/java.util.regex=ALL-UNNAMED
--add-opens java.base/java.nio.channels.spi=ALL-UNNAMED
--add-opens java.base/sun.nio.ch=ALL-UNNAMED
--add-opens java.base/java.net=ALL-UNNAMED
--add-opens
java.base/java.util.concurrent=ALL-UNNAMED
--add-opens java.base/java.util.concurrent=ALL-UNNAMED
--add-opens java.base/sun.nio.fs=ALL-UNNAMED
--add-opens java.base/sun.nio.cs=ALL-UNNAMED
--add-opens java.base/java.nio.file=ALL-UNNAMED
--add-opens
java.base/java.nio.charset=ALL-UNNAMED
--add-opens
java.base/java.lang.reflect=ALL-UNNAMED
--add-opens
java.logging/java.util.logging=ALL-UNNAMED
--add-opens java.base/java.nio.charset=ALL-UNNAMED
--add-opens java.base/java.lang.reflect=ALL-UNNAMED
--add-opens java.logging/java.util.logging=ALL-UNNAMED
--add-opens java.base/java.lang.ref=ALL-UNNAMED
--add-opens java.base/java.util.jar=ALL-UNNAMED
--add-opens java.base/java.util.zip=ALL-UNNAMED
Expand Down
Loading

0 comments on commit b6b0b53

Please sign in to comment.