mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2024-11-16 07:20:31 +01:00
Update api.lua
This commit is contained in:
parent
8cd3788fcc
commit
b139227932
|
@ -461,7 +461,7 @@ function mobs:register_mob(name, def)
|
||||||
else
|
else
|
||||||
if self.jump and self.get_velocity(self) <= 0.5 and self.object:getvelocity().y == 0 then
|
if self.jump and self.get_velocity(self) <= 0.5 and self.object:getvelocity().y == 0 then
|
||||||
local v = self.object:getvelocity()
|
local v = self.object:getvelocity()
|
||||||
v.y = 6.5 -- 6 (in older api.lua version)
|
v.y = 7 -- 6/6.5 (in older api.lua version)
|
||||||
self.object:setvelocity(v)
|
self.object:setvelocity(v)
|
||||||
end
|
end
|
||||||
self.set_velocity(self, self.walk_velocity)
|
self.set_velocity(self, self.walk_velocity)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user