Make bouncer bounce on pointable entities as well
This commit is contained in:
parent
87f7355657
commit
10c2a2c1fc
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user