Prevent blowing up the same block twice in one tic
This commit is contained in:
1 parent
570fad84ab
commit
6e7338a214
1 file changed
+5
@@ -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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user