Skip to content

Commit

Permalink
fix entity tick error when the mob attacked player entity (#465)
Browse files Browse the repository at this point in the history
  • Loading branch information
yanggx98 authored Dec 22, 2023
1 parent 126f2d8 commit 7774c3f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2002,7 +2002,7 @@ public void onEntityHurt(LivingHurtEvent event) {

for (var type : advancedCurio.resistanceList.keySet()) {
if (event.getSource().is(type)) {
event.setAmount(event.getAmount() * advancedCurio.resistanceList.get(event.getSource().typeHolder().unwrapKey()).get());
event.setAmount(event.getAmount() * advancedCurio.resistanceList.get(event.getSource().typeHolder().unwrapKey().get()).get());
break;
}
}
Expand Down

0 comments on commit 7774c3f

Please sign in to comment.