Skip to content

Commit

Permalink
Fix projectile entity collision
Browse files Browse the repository at this point in the history
  • Loading branch information
yuxuanchiadm committed Nov 26, 2024
1 parent 7395588 commit 84c4743
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ public boolean onUpdate(int currentTick) {
Entity nearEntity = null;

for (Entity entity : list) {
if (/*!entity.canCollideWith(this) ||*/ !this.canCollideWith(entity) || (entity == this.shootingEntity && this.ticksLived < 5)) {
if (!entity.canCollide() || /*!entity.canCollideWith(this) ||*/ !this.canCollideWith(entity) || (entity == this.shootingEntity && this.ticksLived < 5)) {
continue;
}

Expand Down

0 comments on commit 84c4743

Please sign in to comment.