This commit is contained in:
Ghoulboy authored and GitHub committed 2022-01-08 20:58:43 +01:00
1 parent eed64f224e
commit a8f9b96e9e
1 file changed
+1 -1
@@ -1584,7 +1584,7 @@ public class EntityValue extends Value
});
put("absorption", (e, v) -> {
if (e instanceof PlayerEntity) ((PlayerEntity) e).setAbsorptionAmount((float) NumericValue.asNumber(v, "absorbtion").getLong());
if (e instanceof PlayerEntity) ((PlayerEntity) e).setAbsorptionAmount(NumericValue.asNumber(v, "absorbtion").getFloat());
});
put("add_xp", (e, v) -> {