1
0
mirror of https://github.com/Refactorio/RedMew.git synced 2025-01-30 04:30:58 +02:00

Update redmew_qol.lua

This commit is contained in:
Jayefuu 2020-12-14 18:30:25 +00:00
parent 7b78dc036b
commit ee2e77fbba

View File

@ -408,14 +408,15 @@ local function player_craft_loaders(event, loader_type)
local button = event.button -- int
local shift = event.shift -- bool
local player = event.player
local count = 0
if button == defines.mouse_button_type.left then
if shift then
local count = 4294967295 -- uint highest value. Factorio crafts as many as able
count = 4294967295 -- uint highest value. Factorio crafts as many as able
else
local count = 1
count = 1
end
elseif button == defines.mouse_button_type.right then
local count = 5
count = 5
else
return
end