mirror of
https://github.com/peter-tanner/factorio-shortcuts.git
synced 2024-11-30 11:10:22 +08:00
v 0.2.2: fix for gridless armor
This commit is contained in:
parent
a596f824ba
commit
3824601a57
5
.gitignore
vendored
Normal file
5
.gitignore
vendored
Normal file
|
@ -0,0 +1,5 @@
|
|||
mod
|
||||
*.svg
|
||||
mod-list.json
|
||||
*.dat
|
||||
*.pdn
|
|
@ -3,7 +3,7 @@ local function update_armor(event)
|
|||
power_armor = player.get_inventory(defines.inventory.player_armor)
|
||||
if power_armor and power_armor.valid then
|
||||
if power_armor[1].valid_for_read then
|
||||
if power_armor[1].grid.valid then
|
||||
if power_armor[1].grid and power_armor[1].grid.valid then
|
||||
global.shortcuts_armor[player.index] = power_armor[1].grid
|
||||
end
|
||||
end
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "Shortcuts",
|
||||
"version": "0.2.1",
|
||||
"version": "0.2.2",
|
||||
"factorio_version": "0.17",
|
||||
"title": "Shortcuts",
|
||||
"author": "npc_strider(morley376)",
|
||||
|
|
Loading…
Reference in New Issue
Block a user