mirror of
https://github.com/Minestom/Minestom.git
synced 2025-01-07 08:58:20 +01:00
Use getAsInt and getAsDouble
This commit is contained in:
parent
0f9a2b5b4f
commit
b842f07c3c
@ -160,10 +160,10 @@ public final class NBTUtils {
|
||||
uuid = Utils.intArrayToUuid(uuidArray);
|
||||
}
|
||||
|
||||
final double value = attributeNBT.getNumber("Amount").doubleValue();
|
||||
final double value = attributeNBT.getAsDouble("Amount");
|
||||
final String slot = attributeNBT.containsKey("Slot") ? attributeNBT.getString("Slot") : "MAINHAND";
|
||||
final String attributeName = attributeNBT.getString("AttributeName");
|
||||
final int operation = attributeNBT.getNumber("Operation").intValue();
|
||||
final int operation = attributeNBT.getAsInt("Operation");
|
||||
final String name = attributeNBT.getString("Name");
|
||||
|
||||
final Attribute attribute = Attribute.fromKey(attributeName);
|
||||
|
Loading…
Reference in New Issue
Block a user