mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2026-11-17 22:33:13 +09:00
undo
This commit is contained in:
1 parent
efff202b91
commit
311d3a35d8
1 file changed
+1
-2
@@ -4,7 +4,6 @@ Add a calculator to do quick calculation.
|
||||
|
||||
local Gui = require("modules/exp_gui")
|
||||
local Roles = require("modules/exp_roles")
|
||||
local format_number = require("util").format_number
|
||||
|
||||
--- @class ExpGui_Calculator.elements
|
||||
local Elements = {}
|
||||
@@ -324,7 +323,7 @@ function Elements.parse(expression)
|
||||
return value
|
||||
end)
|
||||
|
||||
return ok and format_number(result, false) or (type(result) == "table" and format_number(result, false) or {"exp-gui_calculator.error", tostring(result)})
|
||||
return ok and result or (type(result) == "table" and result or {"exp-gui_calculator.error", tostring(result)})
|
||||
end
|
||||
|
||||
--- Value change
|
||||
|
||||
Reference in new issue
Block a user