This commit is contained in:
Anuken
2019-06-24 16:54:50 -04:00
parent 649d527dcf
commit ab716e96e2
12 changed files with 18 additions and 15 deletions
@@ -399,7 +399,7 @@ public class Bullets implements ContentList{
super.hit(b);
tile = tile.link();
if(tile.getTeam() == b.getTeam() && !(tile.block() instanceof BuildBlock)){
if(tile.entity != null && tile.getTeam() == b.getTeam() && !(tile.block() instanceof BuildBlock)){
Effects.effect(Fx.healBlockFull, Pal.heal, tile.drawx(), tile.drawy(), tile.block().size);
tile.entity.healBy(healPercent / 100f * tile.entity.maxHealth());
}