mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2025-01-12 02:50:25 +01:00
parent
9bcbb1c4e5
commit
b4de154668
@ -92,7 +92,7 @@ function pclasses.register_class_switch(cname, params)
|
|||||||
pos.y = pos.y + 1
|
pos.y = pos.y + 1
|
||||||
|
|
||||||
-- Clean remaining entities
|
-- Clean remaining entities
|
||||||
for _,ref in pairs(minetest.get_objects_inside_radius(pos, 1)) do
|
for _,ref in pairs(minetest.get_objects_inside_radius(pos, 0.3)) do
|
||||||
local e = ref:get_luaentity()
|
local e = ref:get_luaentity()
|
||||||
if e and e.name == "pclasses:item" then
|
if e and e.name == "pclasses:item" then
|
||||||
ref:remove()
|
ref:remove()
|
||||||
@ -110,7 +110,7 @@ function pclasses.register_class_switch(cname, params)
|
|||||||
end,
|
end,
|
||||||
on_timer = function(pos)
|
on_timer = function(pos)
|
||||||
pos.y = pos.y + 1
|
pos.y = pos.y + 1
|
||||||
for _,ref in pairs(minetest.get_objects_inside_radius(pos, 1)) do
|
for _,ref in pairs(minetest.get_objects_inside_radius(pos, 0.3)) do
|
||||||
local e = ref:get_luaentity()
|
local e = ref:get_luaentity()
|
||||||
if e and e.name == "pclasses:item" then
|
if e and e.name == "pclasses:item" then
|
||||||
return true
|
return true
|
||||||
@ -126,7 +126,7 @@ function pclasses.register_class_switch(cname, params)
|
|||||||
end,
|
end,
|
||||||
on_destruct = function(pos)
|
on_destruct = function(pos)
|
||||||
pos.y = pos.y + 1
|
pos.y = pos.y + 1
|
||||||
for _,ref in pairs(minetest.get_objects_inside_radius(pos, 1)) do
|
for _,ref in pairs(minetest.get_objects_inside_radius(pos, 0.3)) do
|
||||||
local e = ref:get_luaentity()
|
local e = ref:get_luaentity()
|
||||||
if e and e.name == "pclasses:item" then
|
if e and e.name == "pclasses:item" then
|
||||||
ref:remove()
|
ref:remove()
|
||||||
|
Loading…
Reference in New Issue
Block a user