1
0
mirror of https://github.com/CodeMC/WorldGuardWrapper.git synced 2025-04-09 16:42:37 +02:00

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
implementation
legacy/src/main/java/org/codemc/worldguardwrapper/implementation/legacy/utility
v6/src/main/java/org/codemc/worldguardwrapper/implementation/v6/utility
v7/src/main/java/org/codemc/worldguardwrapper/implementation/v7/utility

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());
}