forked from mtcontrib/hangglider
parent
d6af7437b2
commit
0b5b18732a
4
init.lua
4
init.lua
@ -328,8 +328,8 @@ minetest.register_tool("hangglider:hangglider", {
|
|||||||
inventory_image = "glider_item.png",
|
inventory_image = "glider_item.png",
|
||||||
stack_max=1,
|
stack_max=1,
|
||||||
on_use = function(itemstack, player)
|
on_use = function(itemstack, player)
|
||||||
if not player or (player.is_player and not player:is_player()) then
|
if not player or player.is_fake_player then
|
||||||
-- player does not exist or is created from an autometed machine (fake_player)
|
-- player does not exist or is created from an automated machine (fake_player)
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
local pos = player:get_pos()
|
local pos = player:get_pos()
|
||||||
|
Loading…
Reference in New Issue
Block a user