Fix FlagStorage issues
Dieser Commit ist enthalten in:
Ursprung
fb0a4fd475
Commit
e0bbc812c1
@ -21,6 +21,7 @@ package de.steamwar.bausystem.region;
|
|||||||
|
|
||||||
import de.steamwar.bausystem.region.flags.Flag;
|
import de.steamwar.bausystem.region.flags.Flag;
|
||||||
import yapion.annotations.object.YAPIONData;
|
import yapion.annotations.object.YAPIONData;
|
||||||
|
import yapion.annotations.object.YAPIONPreDeserialization;
|
||||||
|
|
||||||
import java.util.EnumMap;
|
import java.util.EnumMap;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
@ -35,6 +36,11 @@ public class FlagStorage {
|
|||||||
readKeys();
|
readKeys();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@YAPIONPreDeserialization
|
||||||
|
private void preDeserializer() {
|
||||||
|
readKeys();
|
||||||
|
}
|
||||||
|
|
||||||
public boolean set(final Flag flagType, final Flag.Value<?> value) {
|
public boolean set(final Flag flagType, final Flag.Value<?> value) {
|
||||||
return flags.put(flagType, value) != value;
|
return flags.put(flagType, value) != value;
|
||||||
}
|
}
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren