mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-29 14:01:07 +01:00
Comment out code that causes mobs to glitch push players in mcl_playerplus
This commit is contained in:
parent
b6c9a1c423
commit
f57c4709ac
1 changed files with 2 additions and 0 deletions
|
@ -168,11 +168,13 @@ minetest.register_globalstep(function(dtime)
|
||||||
|
|
||||||
local c_x, c_y = unpack(player_collision(player))
|
local c_x, c_y = unpack(player_collision(player))
|
||||||
|
|
||||||
|
--[[
|
||||||
if player_velocity.x + player_velocity.y < .5 and c_x + c_y > 0 then
|
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
|
local add_velocity = player.add_player_velocity or player.add_velocity
|
||||||
add_velocity(player, {x = c_x, y = 0, z = c_y})
|
add_velocity(player, {x = c_x, y = 0, z = c_y})
|
||||||
player_velocity = player:get_velocity() or player:get_player_velocity()
|
player_velocity = player:get_velocity() or player:get_player_velocity()
|
||||||
end
|
end
|
||||||
|
]]--
|
||||||
|
|
||||||
-- control head bone
|
-- control head bone
|
||||||
local pitch = - degrees(player:get_look_vertical())
|
local pitch = - degrees(player:get_look_vertical())
|
||||||
|
|
Loading…
Reference in a new issue