go back home

master
runs 2021-01-07 16:47:01 +01:00
parent b3cd00825f
commit d2be076d73
1 changed files with 7 additions and 0 deletions

View File

@ -1,4 +1,11 @@
function petz.hq_terrestial_jump(self, prty)
--Check igf not water or air (cliff)
local node_name = petz.node_name_in(self, "front_below")
if minetest.registered_nodes[node_name]["liquidtype"] == "source" or
minetest.registered_nodes[node_name]["liquidtype"] == "flowing" or
node_name == "air" then
return
end
local func = function()
local velocity = {
x = self.max_speed * (self.jump_impulse/3),