]> git.lizzy.rs Git - worldedit.git/blobdiff - worldedit/manipulations.lua
Replace deprecated functions with newer ones
[worldedit.git] / worldedit / manipulations.lua
index a6aad16ac88eba1b3ffca6b3ada4915f33889997..76bb13bea8e7404e7e5fe2701fe03f95a7fc529f 100644 (file)
@@ -638,7 +638,7 @@ function worldedit.clear_objects(pos1, pos2)
                -- Avoid players and WorldEdit entities\r
                if not obj:is_player() and (not entity or\r
                                not entity.name:find("^worldedit:")) then\r
-                       local pos = obj:getpos()\r
+                       local pos = obj:get_pos()\r
                        if pos.x >= pos1x and pos.x <= pos2x and\r
                                        pos.y >= pos1y and pos.y <= pos2y and\r
                                        pos.z >= pos1z and pos.z <= pos2z then\r