From e0ec1ad08ff3e6f4a41b0d8b902d49e96ae1688c Mon Sep 17 00:00:00 2001 From: "Michael \"Z\" Goddard" Date: Tue, 5 Jun 2018 23:18:07 -0400 Subject: [PATCH] add id to block execute cache data --- src/engine/blocks.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/engine/blocks.js b/src/engine/blocks.js index 16bcd35b1..110eb62ed 100644 --- a/src/engine/blocks.js +++ b/src/engine/blocks.js @@ -981,6 +981,7 @@ BlocksExecuteCache.getCached = function (blocks, blockId, CacheType) { if (typeof CacheType === 'undefined') { cached = { + id: blockId, opcode: blocks.getOpcode(block), fields: blocks.getFields(block), inputs: blocks.getInputs(block), @@ -988,6 +989,7 @@ BlocksExecuteCache.getCached = function (blocks, blockId, CacheType) { }; } else { cached = new CacheType(blocks, { + id: blockId, opcode: blocks.getOpcode(block), fields: blocks.getFields(block), inputs: blocks.getInputs(block),