only check entities around easel for removal

master
obneq 2012-07-28 11:21:51 +02:00
parent 1a996716db
commit 7cef43de6c
1 changed files with 4 additions and 3 deletions

View File

@ -204,9 +204,10 @@ canvasnode = {
--clean up pixels
initgrid()
for _, e in pairs(minetest.luaentities) do
if e.name == "easel" then
e.object:remove()
local objects = minetest.env:get_objects_inside_radius(pos, 1)
for _, e in ipairs(objects) do
if e:get_luaentity().name == "easel" then
e:remove()
end
end
end