Skip to content

Commit

Permalink
Fix Keys.ABSORPTION remove operation (#4089)
Browse files Browse the repository at this point in the history
  • Loading branch information
ImMorpheus authored Jul 12, 2024
1 parent 2324080 commit 90cca88
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ public static void register(final DataProviderRegistrator registrator) {
.asMutable(LivingEntity.class)
.create(Keys.ABSORPTION)
.get(h -> (double) h.getAbsorptionAmount())
.resetOnDelete(0.0)
.setAnd((h, v) -> {
if (v < 0) {
return false;
Expand Down

0 comments on commit 90cca88

Please sign in to comment.