Внесены обновления комьюнити 66,68,70,71

Также внесены мои изменения в части стека руд и камня
This commit is contained in:
2024-05-26 17:10:02 +03:00
parent de9cea6cbf
commit 66ca187349
23 changed files with 81 additions and 46 deletions

View File

@@ -227,7 +227,7 @@ function logistic_request_gui.open(player, player_table, item_data)
local elems = logistic_setter[type]
local count = request_data[type]
elems.textfield.enabled = true
if count == math.max_uint then
if count >= math.max_uint then
elems.textfield.text = constants.infinity_rep
else
elems.textfield.text = tostring(count)
@@ -309,7 +309,9 @@ function logistic_request_gui.update_request(refs, state, element)
local count
if element.type == "textfield" then
count = tonumber(element.text)
if not count then
if count then
count = math.clamp(count, 0, math.max_uint)
else
count = bound == "min" and 0 or math.max_uint
end
elems.slider.slider_value = math.round(count / item_data.stack_size) * item_data.stack_size