1
0
mirror of https://github.com/pandorabox-io/banners.git synced 2024-11-10 12:40:17 +01:00

Fix 2 deprecated warnings

This commit is contained in:
nikolaus-albinger 2022-02-08 16:32:42 +01:00 committed by Buckaroo Banzai
parent ef8cf57941
commit 9c624a94da

View File

@ -192,7 +192,7 @@ end
banners.banner_on_activate = function(self) 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 = minetest.get_meta(pos):get_string("banner")
local banner_face = minetest.get_node(pos).param2 local banner_face = minetest.get_node(pos).param2
local yaw = 0. local yaw = 0.
@ -205,7 +205,7 @@ banners.banner_on_activate = function(self)
elseif banner_face == 3 then elseif banner_face == 3 then
yaw = 4.71238898038469 -- 3 * pi / 2 yaw = 4.71238898038469 -- 3 * pi / 2
end end
self.object:setyaw(yaw) self.object:set_yaw(yaw)
if banner then if banner then
set_banner_texture(self.object, banner) set_banner_texture(self.object, banner)
end end