wrapped Object class for raw values

This commit is contained in:
HSGamer 2023-03-03 00:21:21 +07:00
parent b553ccba91
commit 6d3fe42fcb
3 changed files with 6 additions and 0 deletions

View File

@ -40,6 +40,8 @@ public class WorldGuardFlagUtilities {
wrappedFlag = new WrappedPrimitiveFlag(flag);
} else if (type.equals(Vector.class)) {
wrappedFlag = new WrappedPrimitiveFlag(flag);
} else if (type.equals(Object.class)) {
wrappedFlag = new WrappedPrimitiveFlag(flag);
} else {
throw new IllegalArgumentException("Unsupported flag type " + type.getName());
}

View File

@ -39,6 +39,8 @@ public class WorldGuardFlagUtilities {
wrappedFlag = new WrappedPrimitiveFlag(flag);
} else if (type.equals(Vector.class)) {
wrappedFlag = new WrappedPrimitiveFlag(flag);
} else if (type.equals(Object.class)) {
wrappedFlag = new WrappedPrimitiveFlag(flag);
} else {
throw new IllegalArgumentException("Unsupported flag type " + type.getName());
}

View File

@ -38,6 +38,8 @@ public class WorldGuardFlagUtilities {
wrappedFlag = new WrappedPrimitiveFlag(flag);
} else if (type.equals(Vector.class)) {
wrappedFlag = new WrappedPrimitiveFlag(flag);
} else if (type.equals(Object.class)) {
wrappedFlag = new WrappedPrimitiveFlag(flag);
} else {
throw new IllegalArgumentException("Unsupported flag type " + type.getName());
}