Prevent blowing up the same block twice in one tic

This commit is contained in:
Eevee (Evelyn Woods) 2021-01-14 00:47:44 -07:00
parent 570fad84ab
commit 6e7338a214

View File

@ -1640,6 +1640,11 @@ export class Level extends LevelInterface {
} }
else if (tile.type.on_arrive) { else if (tile.type.on_arrive) {
tile.type.on_arrive(tile, this, actor); tile.type.on_arrive(tile, this, actor);
if (actor.type.ttl) {
// If we were just turned into an explosion or something, stop here!
break;
}
} }
} }