add id to block execute cache data

This commit is contained in:
Michael "Z" Goddard 2018-06-05 23:18:07 -04:00
parent 418c3837c6
commit e0ec1ad08f
No known key found for this signature in database
GPG key ID: 762CD40DD5349872

View file

@ -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),