fix gravity

This commit is contained in:
Kindaglia 2025-04-25 14:56:54 +02:00
parent a4ba22b9ef
commit 3ca1604b52

View File

@ -31,7 +31,7 @@ function industrialtest.JetpackBase.update(self, player, inv, itemstack, dtime)
if movementGravity and movementGravity > 10 then
reverseGravityForce = 2
end
self.addYVelocityClamped(player,1,10)
self.addYVelocityClamped(player,reverseGravityForce,10)
if not soundHandles[playerName] then
local pos = player:get_pos()
local handle = minetest.sound_play("industrialtest_jetpack_loop", {