From afa0b56db86096eea679c39660ef887a46422760 Mon Sep 17 00:00:00 2001 From: Silver Kuusik Date: Wed, 15 Aug 2018 19:53:10 +0200 Subject: [PATCH] fix blocks to code --- assets/js/blockly.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/assets/js/blockly.js b/assets/js/blockly.js index 86e01f3..8b57a99 100644 --- a/assets/js/blockly.js +++ b/assets/js/blockly.js @@ -137,12 +137,12 @@ window.addEventListener('load', function() { }; Blockly.Python['sumorobot_opponent'] = function(block) { - var code = 'sumorobot.is_opponent()'; + var code = 'sumorobot.is_opponent();;' + block.id; return [code, Blockly.Python.ORDER_ATOMIC]; }; Blockly.Python['sumorobot_line'] = function(block) { - var code = 'sumorobot.is_line(' + block.getFieldValue('LINE') + ')'; + var code = 'sumorobot.is_line(' + block.getFieldValue('LINE') + ');;' + block.id; return [code, Blockly.Python.ORDER_ATOMIC]; };