From 9c624a94dac8910b7d5385f86bd00ad5377362b1 Mon Sep 17 00:00:00 2001 From: nikolaus-albinger <89982526+nikolaus-albinger@users.noreply.github.com> Date: Tue, 8 Feb 2022 16:32:42 +0100 Subject: [PATCH] Fix 2 deprecated warnings --- init.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/init.lua b/init.lua index 02e211b..44f69e7 100644 --- a/init.lua +++ b/init.lua @@ -192,7 +192,7 @@ end banners.banner_on_activate = function(self) - local pos = self.object:getpos() + local pos = self.object:get_pos() local banner = minetest.get_meta(pos):get_string("banner") local banner_face = minetest.get_node(pos).param2 local yaw = 0. @@ -205,7 +205,7 @@ banners.banner_on_activate = function(self) elseif banner_face == 3 then yaw = 4.71238898038469 -- 3 * pi / 2 end - self.object:setyaw(yaw) + self.object:set_yaw(yaw) if banner then set_banner_texture(self.object, banner) end