Skip to content

Commit

Permalink
Fix 2 deprecated warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Niklp09 authored and BuckarooBanzay committed Feb 8, 2022
1 parent ef8cf57 commit 9c624a9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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
Expand Down

0 comments on commit 9c624a9

Please sign in to comment.