mirror of
https://github.com/bloodmc/GriefDefender.git
synced 2024-11-25 12:45:48 +01:00
Fix Flag GUI toggle. Fixes #84
This commit is contained in:
parent
7aeb9f1333
commit
eec002a377
@ -691,7 +691,7 @@ public Tristate getPermissionValueWithRequiredContexts(GDClaim claim, GDPermissi
|
|||||||
|
|
||||||
// Check for required contexts
|
// Check for required contexts
|
||||||
for (Context context : contexts) {
|
for (Context context : contexts) {
|
||||||
if (!context.getKey().contains(contextFilter)) {
|
if (!context.getKey().contains(contextFilter) && !context.getKey().equalsIgnoreCase("world")) {
|
||||||
if (!entry.getKey().contains(context)) {
|
if (!entry.getKey().contains(context)) {
|
||||||
match = false;
|
match = false;
|
||||||
break;
|
break;
|
||||||
|
@ -686,7 +686,7 @@ public Tristate getPermissionValueWithRequiredContexts(GDClaim claim, GDPermissi
|
|||||||
|
|
||||||
// Check for required contexts
|
// Check for required contexts
|
||||||
for (Context context : contexts) {
|
for (Context context : contexts) {
|
||||||
if (!context.getKey().contains(contextFilter)) {
|
if (!context.getKey().contains(contextFilter) && !context.getKey().equalsIgnoreCase("world")) {
|
||||||
if (!entry.getKey().contains(context)) {
|
if (!entry.getKey().contains(context)) {
|
||||||
match = false;
|
match = false;
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user