Skip to content

Commit

Permalink
Fix collision again
Browse files Browse the repository at this point in the history
  • Loading branch information
WenXin20 committed Jan 5, 2025
1 parent 120ec0a commit d2612c7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ public void checkForCollisionsAndWakeUp() {
if (!nearbyEntities.isEmpty()) {
for (Entity collidingEntity : nearbyEntities) {
if (collidingEntity instanceof PiranhaPlantEntity
&& !(collidingEntity.getType().is(TagRegistry.PIRANHA_PLANT_CAN_ATTACK)))
|| !(collidingEntity.getType().is(TagRegistry.PIRANHA_PLANT_CAN_ATTACK)))
return;

this.doHurtTarget(collidingEntity);
Expand Down

0 comments on commit d2612c7

Please sign in to comment.