Fixed bug that lava doesnt kill

master
bob 2022-06-09 14:53:03 -04:00
parent d00b7c4834
commit 057e7692f7
1 changed files with 1 additions and 0 deletions

View File

@ -92,6 +92,7 @@ public class MapReader {
} else if(file.charAt(i)=='l'){
newTile("img/tiles/terrain/lava.png");
GamePanel.map[x][y].nonBombCollide = true;
GamePanel.map[x][y].kills = true;
if(y>0&&GamePanel.map[x][y-1]==null) {
GamePanel.particleTiles.add(GamePanel.map[x][y]);
}