removed useless function

This commit is contained in:
Zughy 2021-02-21 20:14:24 +01:00
parent 9b5d1e2853
commit ad86d1f33b

View File

@ -1,7 +1,5 @@
local S = minetest.get_translator("block_league")
local function get_bullet_count() end
function block_league.bullets_hud_create(p_name)
@ -61,22 +59,6 @@ end
function get_bullet_count(definition, inv)
if not definition.bullet then return end
for i=0,inv:get_size("main"),1 do
local stack = inv:get_stack("main", i)
local item_name = stack:get_name()
if item_name == definition.bullet then
return stack:get_count()
end
end
end
function block_league.weapons_hud_update(arena, p_name, w_name, is_reloading)
local weapon = minetest.registered_nodes[w_name]