Skip to content

Commit

Permalink
Logic Derp
Browse files Browse the repository at this point in the history
  • Loading branch information
Direwolf20-MC committed Dec 8, 2024
1 parent 6107e18 commit 3222517
Showing 1 changed file with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -176,10 +176,14 @@ protected void defineSynchedData(SynchedEntityData.Builder p_326324_) {
}

public boolean isHostileEntity(LivingEntity entity) {
if (getTargetAngry()) return true;
if (getTargetAngry())
return true;
if (entity instanceof NeutralMob) {
setTargetAngry(true);
return ((NeutralMob) entity).isAngry();
if (((NeutralMob) entity).isAngry()) {
setTargetAngry(true);
return true;
}
return false;
}
if (entity instanceof Enemy) {
return true;
Expand Down

0 comments on commit 3222517

Please sign in to comment.