1
0
mirror of https://github.com/ComfyFactory/ComfyFactorio.git synced 2025-02-03 13:12:11 +02:00

mtn v3 - fix minor issue

This commit is contained in:
Gerkiz 2022-05-15 02:20:06 +02:00
parent be6476c740
commit 82f00a4a3e

View File

@ -274,17 +274,6 @@ local function get_driver_action(entity)
return
end
local weapon = driver.get_inventory(defines.inventory.character_guns)
if weapon then
for i = 1, 3 do
if weapon[i] and weapon[i].valid_for_read then
player.print('[color=blue][Locomotive][/color] Unequip your weapon if you want to drive.')
driver.driving = false
return
end
end
end
local armor = driver.get_inventory(defines.inventory.character_armor)
if armor and armor[1] and armor[1].valid_for_read and valid_armors[armor[1].name] then
player.print('[color=blue][Locomotive][/color] Unequip your armor if you want to drive.')