This commit is contained in:
2025-01-07 17:40:53 +09:00
parent baf9e3f2df
commit fa3168e1ac

View File

@@ -100,7 +100,6 @@ if config.fired_rocket then
return return
end end
local ammo_inv = player.get_inventory(defines.inventory.character_ammo) --- @cast ammo_inv -nil local ammo_inv = player.get_inventory(defines.inventory.character_ammo) --- @cast ammo_inv -nil
if player.character then if player.character then
local item = ammo_inv[player.character.selected_gun_index] local item = ammo_inv[player.character.selected_gun_index]
if not item or not item.valid or not item.valid_for_read then if not item or not item.valid or not item.valid_for_read then