Rename mcl_playerphysics to playerphysics

This commit is contained in:
Wuzzy 2018-10-23 18:51:19 +02:00
parent e0fe5b2c66
commit b076bafaa7
12 changed files with 34 additions and 34 deletions

View file

@ -45,9 +45,9 @@ local function setSprinting(playerName, sprinting) --Sets the state of a player
if players[playerName] then
players[playerName]["sprinting"] = sprinting
if sprinting == true then
mcl_playerphysics.add_physics_factor(player, "speed", "mcl_sprint:sprint", mcl_sprint.SPEED)
playerphysics.add_physics_factor(player, "speed", "mcl_sprint:sprint", mcl_sprint.SPEED)
elseif sprinting == false then
mcl_playerphysics.remove_physics_factor(player, "speed", "mcl_sprint:sprint")
playerphysics.remove_physics_factor(player, "speed", "mcl_sprint:sprint")
end
return true
end