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) -> {
|
||||
|
||||
Reference in new issue
Block a user