prevent from breaking other things

This commit is contained in:
Leonwang4234
2020-10-08 19:27:01 -07:00
parent af5fd4551c
commit e73a813d69
2 changed files with 3 additions and 3 deletions

View File

@@ -145,7 +145,7 @@ abstract class BulletComp implements Timedc, Damagec, Hitboxc, Teamc, Posc, Draw
});
}
if(collided.size >= type.pierceCap) {
if(type.pierceCap != -1 && collided.size >= type.pierceCap) {
remove();
}
}