Skip to content

Commit

Permalink
Fix ANY not working when checking for CLIENT or SERVER environments
Browse files Browse the repository at this point in the history
  • Loading branch information
ChachyDev committed Jul 29, 2021
1 parent 03a0d60 commit f14cf77
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ ext {
}

group "org.bookmc"
version "0.4.0${local ? "+local" : ""}"
version "0.4.1${local ? "+local" : ""}"

repositories {
mavenCentral()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ public enum Environment {
CLIENT {
@Override
public boolean allows(Environment environment) {
return environment == CLIENT;
return environment == CLIENT || environment == ANY;
}
},
SERVER {
@Override
public boolean allows(Environment environment) {
return environment == CLIENT;
return environment == CLIENT || environment == ANY;
}
},
UNKNOWN {
Expand Down

0 comments on commit f14cf77

Please sign in to comment.