This commit is contained in:
parent
281a125584
commit
e250eca841
1 changed files with 1 additions and 1 deletions
|
@ -213,7 +213,7 @@ public class SRPlayer {
|
||||||
@SuppressWarnings("unused")
|
@SuppressWarnings("unused")
|
||||||
public @NotNull Map<Attribute, Double> getItemAttributes(Item item) {
|
public @NotNull Map<Attribute, Double> getItemAttributes(Item item) {
|
||||||
if (itemAttributes == null) itemAttributes = new EnumMap<>(Attribute.class);
|
if (itemAttributes == null) itemAttributes = new EnumMap<>(Attribute.class);
|
||||||
Map<Attribute, Double> map = new HashMap<>();
|
Map<Attribute, Double> map = new EnumMap<>(Attribute.class);
|
||||||
itemAttributes.forEach((k, v) -> map.put(k, v.getOrDefault(item.toItemStack(), 0d)));
|
itemAttributes.forEach((k, v) -> map.put(k, v.getOrDefault(item.toItemStack(), 0d)));
|
||||||
return map;
|
return map;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue