Skip to content

Commit

Permalink
Change jump force from x1.2 to x1.1, change move speed from x1.0 to x1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
LoneWolfHT committed Sep 28, 2024
1 parent b190c32 commit f6abdd7
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions mods/apis/physics/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ physics = {}

local players = {}
local default_overrides = {
speed = 1,
speed_crouch = 1,
jump = 1.2,
gravity = 1
speed = 1.1,
speed_crouch = 1.0,
jump = 1.0,
gravity = 1.0,
}

minetest.register_on_joinplayer(function(player)
Expand All @@ -26,6 +26,10 @@ local function update(name)
end
end

if (override.jump or 0) <= 1.1 then
override.jump = 1.1
end

player:set_physics_override(override)
end

Expand Down

0 comments on commit f6abdd7

Please sign in to comment.