mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2025-02-26 01:01:50 +01:00
Fixed NewIsland.Builder#reason() logic (thanks to the unit tests)
This commit is contained in:
parent
48f898aa2c
commit
a807918105
@ -98,7 +98,7 @@ public class NewIsland {
|
||||
* @param reason reason, can only be {@link Reason#CREATE} or {@link Reason#RESET}.
|
||||
*/
|
||||
public Builder reason(Reason reason) {
|
||||
if (!reason.equals(Reason.CREATE) || !reason.equals(Reason.RESET)) {
|
||||
if (!reason.equals(Reason.CREATE) && !reason.equals(Reason.RESET)) {
|
||||
throw new IllegalArgumentException("Reason must be CREATE or RESET.");
|
||||
}
|
||||
this.reason2 = reason;
|
||||
|
Loading…
Reference in New Issue
Block a user