diff --git a/block_league/src/weapons/bouncer.lua b/block_league/src/weapons/bouncer.lua index 5956c7c..f3f2b97 100644 --- a/block_league/src/weapons/bouncer.lua +++ b/block_league/src/weapons/bouncer.lua @@ -16,8 +16,8 @@ local function register_bouncer(name, desc, stamina) on_use = function(itemstack, user, pointed_thing) if not can_use(user) then return end - -- se non sta puntando un nodo, annullo - if pointed_thing.type ~= "node" then return end + -- se non sta puntando nulla o sta puntando un giocatore, annullo + if pointed_thing.type == "nothing" or (pointed_thing.type == "object" and minetest.is_player(pointed_thing.ref)) then return end local p_name = user:get_player_name() local arena = arena_lib.get_arena_by_player(p_name)