mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2025-06-25 02:04:44 +02:00
Fix invalid record type error
This commit is contained in:
@ -21,19 +21,20 @@ import java.util.Map;
|
||||
import java.util.Set;
|
||||
|
||||
/**
|
||||
* Flag Manager Utility
|
||||
*
|
||||
* Flag Manager Utility.
|
||||
*/
|
||||
public class FlagManager {
|
||||
|
||||
|
||||
/**
|
||||
* Some events can be called millions of times each second (e.g. physics) and reusing is a lot faster.
|
||||
* Some events can be called millions of times each second (e.g. physics)
|
||||
* and reusing is a lot faster.
|
||||
*/
|
||||
private static final Optional MUTABLE_OPTIONAL;
|
||||
private static Field MUTABLE_OPTIONAL_FIELD;
|
||||
|
||||
static {
|
||||
MUTABLE_OPTIONAL = Optional.of(new Object());
|
||||
MUTABLE_OPTIONAL = Optional.of(new Object());
|
||||
try {
|
||||
MUTABLE_OPTIONAL_FIELD = MUTABLE_OPTIONAL.getClass().getDeclaredField("reference");
|
||||
MUTABLE_OPTIONAL_FIELD.setAccessible(true);
|
||||
@ -115,7 +116,7 @@ public class FlagManager {
|
||||
if (i != 0) {
|
||||
flag_string.append(',');
|
||||
}
|
||||
flag_string.append(flag.getName() + ':' + flag.valueToString(entry.getValue()).replaceAll(":", "¯").replaceAll(",", "´"));
|
||||
flag_string.append(flag.getName() + ':' + flag.valueToString(entry.getValue()).replaceAll(":", "¯").replaceAll(",", "´"));
|
||||
i++;
|
||||
}
|
||||
return flag_string.toString();
|
||||
|
Reference in New Issue
Block a user