flight potion checks for fake player (thx savilli)
This commit is contained in:
parent
095ed7c242
commit
177a2ecebf
@ -146,6 +146,10 @@ minetest.register_node("ethereal:flight_potion", {
|
||||
|
||||
on_use = function(itemstack, user, pointed_thing)
|
||||
|
||||
if user.is_fake_player then
|
||||
return
|
||||
end
|
||||
|
||||
-- get privs
|
||||
local name = user:get_player_name()
|
||||
local privs = minetest.get_player_privs(name)
|
||||
|
Loading…
x
Reference in New Issue
Block a user