mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-11-25 12:15:53 +01:00
Specify key type in attribute trait
This commit is contained in:
parent
8f3a396198
commit
6bb52c0515
@ -14,7 +14,7 @@ import net.citizensnpcs.api.trait.TraitName;
|
||||
|
||||
@TraitName("attributetrait")
|
||||
public class AttributeTrait extends Trait {
|
||||
@Persist
|
||||
@Persist(keyType = Attribute.class)
|
||||
private final Map<Attribute, Double> attributes = Maps.newEnumMap(Attribute.class);
|
||||
|
||||
public AttributeTrait() {
|
||||
|
Loading…
Reference in New Issue
Block a user