Skip to content

Commit

Permalink
Merge OptiGUI 2.3.0-alpha.2
Browse files Browse the repository at this point in the history
  • Loading branch information
opekope2 authored Mar 12, 2024
2 parents 2f810eb + 54686d3 commit c3c02f7
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
JAVA_VERSION=$(grep java_version gradle.properties | sed "s|java_version=||g")
echo "JAVA_VERSION=$JAVA_VERSION" >> $GITHUB_OUTPUT
- name: Publish to GitHub, Modrinth, and CurseForge
uses: Kir-Antipov/[email protected]
uses: Kir-Antipov/[email protected].0
with:
modrinth-id: ${{ vars.MODRINTH_ID }}
modrinth-token: ${{ secrets.MODRINTH_TOKEN }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ object LoadSelectorRegistry : Iterable<Pair<String, (String) -> Boolean>> {
* @return `true` if the registration was successful, `false` if there was a selector or load selector registered
* for the given key
*/
@JvmStatic
fun tryRegister(selectorKey: String, selector: (String) -> Boolean): Boolean {
if (selectorKey in this || selectorKey in SelectorRegistry) return false

Expand All @@ -34,6 +35,7 @@ object LoadSelectorRegistry : Iterable<Pair<String, (String) -> Boolean>> {
* @param selectorKey The key (as in key-value pair) to register a load selector for
* @param selector The load selector instance
*/
@JvmStatic
fun register(selectorKey: String, selector: (String) -> Boolean) {
if (!tryRegister(selectorKey, selector)) {
throw IllegalStateException("A selector or load selector for `$selectorKey` has already been registered")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ object SelectorRegistry : Iterable<Pair<String, ISelector>> {
* @return `true` if the registration was successful, `false` if there was a selector or load selector registered
* for the given key
*/
@JvmStatic
fun tryRegister(selectorKey: String, selector: ISelector): Boolean {
if (selectorKey in this || selectorKey in LoadSelectorRegistry) return false

Expand All @@ -30,6 +31,7 @@ object SelectorRegistry : Iterable<Pair<String, ISelector>> {
* @param selectorKey The key (as in key-value pair) to register a selector for
* @param selector The selector instance
*/
@JvmStatic
fun register(selectorKey: String, selector: ISelector) {
if (!tryRegister(selectorKey, selector)) {
throw IllegalStateException("A selector or load selector for `$selectorKey` has already been registered")
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ loom_version=1.5-SNAPSHOT
java_version=17
##########################################################################
# Mod Properties
mod_version=2.3.0-alpha.1
mod_version=2.3.0-alpha.2
maven_group=opekope2.optigui
##########################################################################
# Kotlin Dependencies
Expand Down

0 comments on commit c3c02f7

Please sign in to comment.