diff --git a/addons/dice_syntax/dice_syntax.gd b/addons/dice_syntax/dice_syntax.gd index 1d00612..0b11787 100644 --- a/addons/dice_syntax/dice_syntax.gd +++ b/addons/dice_syntax/dice_syntax.gd @@ -38,7 +38,7 @@ static func dice_parser(dice:String)->Dictionary: test_out.append(1.0) expression.execute(test_out) - if expression.has_execute_failed(): + if expression.has_execute_failed() or expression.get_error_text()!='': error = true msg.append('Expression fails to execute') diff --git a/addons/dice_syntax/plugin.cfg b/addons/dice_syntax/plugin.cfg index c06b551..05b701d 100644 --- a/addons/dice_syntax/plugin.cfg +++ b/addons/dice_syntax/plugin.cfg @@ -3,5 +3,5 @@ name="dice_syntax" description="Dice rolling syntax" author="Ogan Mancarci" -version="2.1" +version="2.1.1" script="plugin.gd"