0
0
Fork 0

Comment out code that causes mobs to glitch push players in mcl_playerplus

This commit is contained in:
jordan4ibanez 2021-04-25 19:54:11 -04:00
parent b6c9a1c423
commit f57c4709ac
1 changed files with 2 additions and 0 deletions

View File

@ -168,11 +168,13 @@ minetest.register_globalstep(function(dtime)
local c_x, c_y = unpack(player_collision(player))
--[[
if player_velocity.x + player_velocity.y < .5 and c_x + c_y > 0 then
local add_velocity = player.add_player_velocity or player.add_velocity
add_velocity(player, {x = c_x, y = 0, z = c_y})
player_velocity = player:get_velocity() or player:get_player_velocity()
end
]]--
-- control head bone
local pitch = - degrees(player:get_look_vertical())