Skip to content

Commit 1eb27fa

Browse files
committed
Fix yet another StackOverflowError
1 parent 368b417 commit 1eb27fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/PluginListener.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -766,7 +766,7 @@ public boolean onAttack(LivingEntity attacker, LivingEntity defender, Integer am
766766
*/
767767
public boolean onAttack(LivingEntityBase attacker, LivingEntityBase defender, float amount) {
768768
if (attacker instanceof LivingEntity && defender instanceof LivingEntity) {
769-
return onAttack(attacker, defender, Integer.valueOf((int) amount));
769+
return onAttack((LivingEntity) attacker, (LivingEntity) defender, Integer.valueOf((int) amount));
770770
}
771771

772772
return false;

0 commit comments

Comments
 (0)