deprecation

This commit is contained in:
Bruno Rybársky 2022-08-18 17:04:29 +02:00
parent 257c1e0be8
commit b9048f34b0

@ -103,7 +103,7 @@ minetest.register_entity(
else else
self._tmr = 0 self._tmr = 0
end end
local pos = self.object:getpos() local pos = self.object:get_pos()
local pos1 = {x = pos.x, y = pos.y + 0.5, z = pos.z} local pos1 = {x = pos.x, y = pos.y + 0.5, z = pos.z}
local d local d
--swap 1 and 3 in p --swap 1 and 3 in p
@ -142,7 +142,7 @@ minetest.register_entity(
minetest.sound_play("portalgun_bullet1", {pos = pos, gain = 1, max_hear_distance = 15}) minetest.sound_play("portalgun_bullet1", {pos = pos, gain = 1, max_hear_distance = 15})
else else
local obj = minetest.add_entity(pos1, "portalgun:turretgun") local obj = minetest.add_entity(pos1, "portalgun:turretgun")
obj:setyaw(self.object:get_yaw()) obj:set_yaw(self.object:get_yaw())
self.object:remove() self.object:remove()
end end
return true return true