Fix failed issue

This commit is contained in:
ALS 2021-02-20 19:51:45 +01:00
parent ac7ca6f8e4
commit 01ff9e2123

View File

@ -163,7 +163,7 @@ public final class NBTUtils {
final double value = attributeNBT.getNumber("Amount").doubleValue();
final String slot = attributeNBT.containsKey("Slot") ? attributeNBT.getString("Slot") : "MAINHAND";
final String attributeName = attributeNBT.getString("AttributeName");
final int operation = attributeNBT.getInt("Operation").intValue();
final int operation = attributeNBT.getNumber("Operation").intValue();
final String name = attributeNBT.getString("Name");
final Attribute attribute = Attribute.fromKey(attributeName);