Skip to content

Commit

Permalink
0.16.4: fixes for PvP
Browse files Browse the repository at this point in the history
  • Loading branch information
Anton-V-K committed Mar 26, 2020
1 parent d3e63fe commit 47a6f96
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
12 changes: 8 additions & 4 deletions control.lua
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,16 @@ end
end

local toolbelt = player.get_quickbar()
toolbelt.remove{name="grenade", count="100"} -- New hope / Level 03
--toolbelt.remove{type="ammo", count="100"}
toolbelt.remove{name="gun-turret", count="100"}
if toolbelt then
toolbelt.remove{name="grenade", count="100"} -- New hope / Level 03
--toolbelt.remove{type="ammo", count="100"}
toolbelt.remove{name="gun-turret", count="100"}
end

local inv = player.get_inventory(defines.inventory.player_main)
inv.remove{name="gun-turret", count="100"}
if inv then
inv.remove{name="gun-turret", count="100"}
end

local car = player.get_inventory(defines.inventory.player_vehicle)
if car then
Expand Down
2 changes: 1 addition & 1 deletion info.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

{
"name": "SimplePeaceMod",
"version": "0.16.3",
"version": "0.16.4",
"title": "Simple Peace Mod",
"author": "Anton-V-K",
"contact": "[email protected]",
Expand Down

0 comments on commit 47a6f96

Please sign in to comment.