1
0
mirror of https://github.com/MinetestForFun/fishing.git synced 2025-07-18 00:00:21 +02:00

Remove various deprecated functions

This commit is contained in:
Panquesito7
2020-05-15 12:41:44 -05:00
parent f81a90c20a
commit 2a8650bc4b
2 changed files with 5 additions and 5 deletions

View File

@ -125,7 +125,7 @@ local FISHING_BOBBER_SHARK_ENTITY={
0.25, 0.40, -- min size, max size
false, "fishing_particle_baitball_shark.png")
-- add sound
minetest.sound_play("fishing_baitball", {pos = self.object:getpos(), gain = 0.2, })
minetest.sound_play("fishing_baitball", {pos = self.object:get_pos(), gain = 0.2, })
end
end,
@ -156,7 +156,7 @@ local FISHING_BOBBER_SHARK_ENTITY={
--rotate bobber
if math.random(1, 4) == 1 then
self.object:setyaw(self.object:get_yaw()+((math.random(0,360)-180)/2880*math.pi))
self.object:set_yaw(self.object:get_yaw()+((math.random(0,360)-180)/2880*math.pi))
end
self.timer = self.timer + 1