forked from mtcontrib/hangglider
Quick fix-up
This commit is contained in:
parent
b2b322701f
commit
393de8275a
5
init.lua
5
init.lua
@ -57,6 +57,7 @@ minetest.register_entity("hangglider:glider", {
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
if not canExist then
|
if not canExist then
|
||||||
|
self.object:set_detach()
|
||||||
self.object:remove()
|
self.object:remove()
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@ -105,10 +106,6 @@ minetest.register_craftitem("hangglider:hangglider", {
|
|||||||
minetest.add_entity(user:get_pos(), "hangglider:glider"):set_attach(user, "", {x=0,y=0,z=0}, {x=0,y=0,z=0})
|
minetest.add_entity(user:get_pos(), "hangglider:glider"):set_attach(user, "", {x=0,y=0,z=0}, {x=0,y=0,z=0})
|
||||||
|
|
||||||
elseif hangglider.use[user:get_player_name()] then --Unequip
|
elseif hangglider.use[user:get_player_name()] then --Unequip
|
||||||
user:set_physics_override({
|
|
||||||
gravity = 1,
|
|
||||||
jump = 1,
|
|
||||||
})
|
|
||||||
hangglider.use[user:get_player_name()] = false
|
hangglider.use[user:get_player_name()] = false
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user