post change
This commit is contained in:
+3
-1
@@ -642,7 +642,9 @@ end
|
|||||||
|
|
||||||
function private.quantity_update()
|
function private.quantity_update()
|
||||||
if selected_item then
|
if selected_item then
|
||||||
private.stack_count_slider:SetMinMaxValues(1, selected_item.max_charges and selected_item.availability[private.stack_size_slider:GetValue()] or floor(selected_item.availability[0] / private.stack_size_slider:GetValue()))
|
local max_stack_count = selected_item.max_charges and selected_item.availability[private.stack_size_slider:GetValue()] or floor(selected_item.availability[0] / private.stack_size_slider:GetValue())
|
||||||
|
private.stack_count_slider:SetMinMaxValues(1, max_stack_count)
|
||||||
|
private.stack_count_slider:SetValue(max_stack_count)
|
||||||
end
|
end
|
||||||
refresh = true
|
refresh = true
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user