mirror of
https://github.com/lhofhansl/rangedweapons.git
synced 2025-03-13 13:42:32 +01:00
removed leftover mentions of ammo_icon
This commit is contained in:
13
init.lua
13
init.lua
@ -110,10 +110,6 @@ end end
|
||||
|
||||
if player_has_ammo == 1 then
|
||||
|
||||
if reload_ammo:get_definition().inventory_image ~= nil then
|
||||
ammo_icon = reload_ammo:get_definition().inventory_image
|
||||
end
|
||||
|
||||
local gunMeta = itemstack:get_meta()
|
||||
local ammoCount = gunMeta:get_int("RW_bullets")
|
||||
local ammoName = gunMeta:get_string("RW_ammo_name")
|
||||
@ -209,10 +205,6 @@ end end
|
||||
|
||||
if player_has_ammo == 1 then
|
||||
|
||||
if reload_ammo:get_definition().inventory_image ~= nil then
|
||||
ammo_icon = reload_ammo:get_definition().inventory_image
|
||||
end
|
||||
|
||||
local gunMeta = itemstack:get_meta()
|
||||
local ammoCount = gunMeta:get_int("RW_bullets")
|
||||
local ammoName = gunMeta:get_string("RW_ammo_name")
|
||||
@ -453,11 +445,6 @@ if gun_skillChance > 0 and gun_skill ~= "" then
|
||||
rangedweapons_gain_skill(player,gun_skill,gun_skillChance)
|
||||
end
|
||||
|
||||
local ammo_icon = "rangedweapons_emergency_ammo_icon.png"
|
||||
if bulletStack:get_definition().inventory_image ~= nil then
|
||||
ammo_icon = bulletStack:get_definition().inventory_image
|
||||
end
|
||||
|
||||
if AmmoCaps ~= nil then
|
||||
|
||||
OnCollision = AmmoCaps.OnCollision or function()end
|
||||
|
Reference in New Issue
Block a user