Disable physics overrides

This commit is contained in:
Billy S 2018-12-15 21:46:21 -05:00 committed by GitHub
parent 529a919319
commit 5898351eee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -20,7 +20,7 @@ function xdecor.sit(pos, node, clicker, pointed_thing)
pos.y = pos.y - 0.5
clicker:setpos(pos)
clicker:set_eye_offset({x=0, y=0, z=0}, {x=0, y=0, z=0})
clicker:set_physics_override(1, 1, 1)
--clicker:set_physics_override(1, 1, 1)
default.player_attached[player_name] = false
default.player_set_animation(clicker, "stand", 30)
@ -28,7 +28,7 @@ function xdecor.sit(pos, node, clicker, pointed_thing)
ctrl.sneak and vel.x == 0 and vel.y == 0 and vel.z == 0 then
clicker:set_eye_offset({x=0, y=-7, z=2}, {x=0, y=0, z=0})
clicker:set_physics_override(0, 0, 0)
--clicker:set_physics_override(0, 0, 0)
clicker:setpos(pos)
default.player_attached[player_name] = true
default.player_set_animation(clicker, "sit", 30)