mirror of
https://github.com/lucko/LuckPerms.git
synced 2025-09-25 21:38:59 +02:00
Small cleanup in Contexts class
This commit is contained in:
@@ -219,7 +219,7 @@ public class Contexts {
|
|||||||
if (this.contextSet.equals(cs)) {
|
if (this.contextSet.equals(cs)) {
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
return new Contexts(Objects.requireNonNull(contextSet, "contextSet").makeImmutable(), this.settingsFlag);
|
return new Contexts(cs, this.settingsFlag);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -237,7 +237,7 @@ public class Contexts {
|
|||||||
if (this.settingsFlag == settingsFlag) {
|
if (this.settingsFlag == settingsFlag) {
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
if (this.contextSet.isEmpty() && DEFAULT_SETTINGS_FLAG == settingsFlag) {
|
if (DEFAULT_SETTINGS_FLAG == settingsFlag && this.contextSet.isEmpty()) {
|
||||||
return GLOBAL;
|
return GLOBAL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user