Replace getpos() with get_pos()
This commit is contained in:
parent
1f1361d179
commit
e789801662
58 changed files with 105 additions and 105 deletions
|
@ -38,7 +38,7 @@ mobs:register_mob("mobs_mc:evoker", {
|
|||
-- Summon vexes
|
||||
custom_attack = function(self, to_attack)
|
||||
local r = pr:next(2,4)
|
||||
local basepos = self.object:getpos()
|
||||
local basepos = self.object:get_pos()
|
||||
basepos.y = basepos.y + 1
|
||||
for i=1, r do
|
||||
local spawnpos = vector.add(basepos, minetest.yaw_to_dir(pr:next(0,360)))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue