forked from Mirrorlandia_minetest/portalgun
deprecation
This commit is contained in:
parent
257c1e0be8
commit
b9048f34b0
@ -103,7 +103,7 @@ minetest.register_entity(
|
||||
else
|
||||
self._tmr = 0
|
||||
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 d
|
||||
--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})
|
||||
else
|
||||
local obj = minetest.add_entity(pos1, "portalgun:turretgun")
|
||||
obj:setyaw(self.object:get_yaw())
|
||||
obj:set_yaw(self.object:get_yaw())
|
||||
self.object:remove()
|
||||
end
|
||||
return true
|
||||
|
Loading…
Reference in New Issue
Block a user