Revert "Fix deprecation warnings in animations.lua (#156)"

This reverts commit 7bf70becac.
This commit is contained in:
Jean-Patrick Guerrero 2022-09-13 00:51:24 +02:00
parent 7bf70becac
commit b546d69322
3 changed files with 7 additions and 7 deletions

View File

@ -7,7 +7,7 @@ It adds a bunch of cute cubes, various mechanisms and stuff for [cutting](https:
This mod is a lightweight alternative to HomeDecor and MoreBlocks.
### Requirements ###
This mod requires at least version 5.4 of Minetest.
This mod requires at least version 5.1 of Minetest.
### Credits ###

View File

@ -7,7 +7,7 @@ function xdecor.sit(pos, node, clicker, pointed_thing)
if not top_face(pointed_thing) then return end
local player_name = clicker:get_player_name()
local objs = minetest.get_objects_inside_radius(pos, 0.1)
local vel = clicker:get_velocity()
local vel = clicker:get_player_velocity()
local ctrl = clicker:get_player_control()
for _, obj in pairs(objs) do
@ -34,13 +34,13 @@ function xdecor.sit(pos, node, clicker, pointed_thing)
default.player_set_animation(clicker, "sit", 30)
if node.param2 == 0 then
clicker:set_look_horizontal(3.15)
clicker:set_look_yaw(3.15)
elseif node.param2 == 1 then
clicker:set_look_horizontal(7.9)
clicker:set_look_yaw(7.9)
elseif node.param2 == 2 then
clicker:set_look_horizontal(6.28)
clicker:set_look_yaw(6.28)
elseif node.param2 == 3 then
clicker:set_look_horizontal(4.75)
clicker:set_look_yaw(4.75)
end
end
end

View File

@ -2,4 +2,4 @@ name = xdecor
description = A decoration mod meant to be simple and well-featured.
depends = default, bucket, doors, farming, stairs, xpanes
optional_depends = fire, oresplus, moreblocks, mesecons
min_minetest_version = 5.4.0
min_minetest_version = 5.1.0