Fixed meltdown not setting blocks on fire

This commit is contained in:
Anuken
2018-09-16 22:13:44 -04:00
parent 2d25948c57
commit 6a7c97277f
3 changed files with 10 additions and 1 deletions
@@ -90,7 +90,8 @@ public class Damage{
Tile tile = world.tile(cx, cy);
if(tile != null && tile.entity != null && tile.target().getTeamID() != team.ordinal() && tile.entity.collide(hitter)){
tile.entity.collision(hitter);
Effects.effect(effect, tile.worldx(), tile.worldy());
hitter.getBulletType().hit(hitter, tile.worldx(), tile.worldy());
//Effects.effect(effect, tile.worldx(), tile.worldy());
}
return false;
});
@@ -95,6 +95,10 @@ public class Bullet extends BulletEntity<BulletType> implements TeamTrait, SyncT
create(type, null, Team.none, x, y, angle);
}
public BulletType getBulletType(){
return type;
}
public boolean collidesTiles(){
return type.collidesTiles;
}