This commit is contained in:
Silver Kuusik 2018-08-15 13:35:28 +02:00
parent 9c4399859f
commit f23c50f331

View File

@ -137,12 +137,12 @@ window.addEventListener('load', function() {
};
Blockly.Python['sumorobot_opponent'] = function(block) {
var code = 'sumorobot.is_opponent();;' + block.id + '\n';
var code = 'sumorobot.is_opponent()';
return [code, Blockly.Python.ORDER_ATOMIC];
};
Blockly.Python['sumorobot_line'] = function(block) {
var code = 'sumorobot.is_line(' + block.getFieldValue('LINE') + ');;' + block.id + '\n';
var code = 'sumorobot.is_line(' + block.getFieldValue('LINE') + ')';
return [code, Blockly.Python.ORDER_ATOMIC];
};