Replace getpos() with get_pos()

This commit is contained in:
Wuzzy 2019-02-01 06:33:07 +01:00
parent 1f1361d179
commit e789801662
58 changed files with 105 additions and 105 deletions

View file

@ -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)))