diff --git a/game/src/main/org/apollo/game/model/entity/attr/AttributeMap.java b/game/src/main/org/apollo/game/model/entity/attr/AttributeMap.java index 5937274b..0ee12779 100644 --- a/game/src/main/org/apollo/game/model/entity/attr/AttributeMap.java +++ b/game/src/main/org/apollo/game/model/entity/attr/AttributeMap.java @@ -113,7 +113,7 @@ public final class AttributeMap { private Attribute createAttribute(T value, AttributeType type) { switch (type) { case LONG: - return new NumericalAttribute((Long) value); + return new NumericalAttribute(((Number) value).longValue()); case DOUBLE: return new NumericalAttribute((Double) value); case STRING: diff --git a/game/src/main/org/apollo/game/model/entity/attr/StringAttribute.java b/game/src/main/org/apollo/game/model/entity/attr/StringAttribute.java index 1158c09d..2f6062bf 100644 --- a/game/src/main/org/apollo/game/model/entity/attr/StringAttribute.java +++ b/game/src/main/org/apollo/game/model/entity/attr/StringAttribute.java @@ -1,6 +1,5 @@ package org.apollo.game.model.entity.attr; -import java.nio.charset.Charset; import java.nio.charset.StandardCharsets; import java.util.Arrays;