fixed a glitch in doWhen()

dev
Jens Mönig 2016-02-24 23:15:32 +01:00
rodzic 3d0230dcdd
commit ad25c6aefd
1 zmienionych plików z 5 dodań i 2 usunięć

Wyświetl plik

@ -334,9 +334,12 @@ ThreadManager.prototype.findProcess = function (block) {
ThreadManager.prototype.doWhen = function (block, stopIt) {
if (this.pauseCustomHatBlocks) {return; }
var pred = block.inputs()[0];
var pred = block.inputs()[0], world;
if (block.removeHighlight()) {
block.world().hand.destroyTemporaries();
world = block.world();
if (world) {
world.hand.destroyTemporaries();
}
}
if (stopIt) {return; }
if ((!block) ||