mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2024-12-25 02:00:37 +01:00
remove minetest.setting_get("remove_items") of step
remove minetest.setting_get("remove_items") of step, useless parsing
This commit is contained in:
parent
1cde302446
commit
06bd1f95d5
@ -1,3 +1,9 @@
|
||||
local time = tonumber(minetest.setting_get("remove_items"))
|
||||
if not time then
|
||||
time = 600
|
||||
end
|
||||
|
||||
|
||||
minetest.register_entity(":__builtin:item", {
|
||||
initial_properties = {
|
||||
hp_max = 1,
|
||||
@ -79,10 +85,6 @@ minetest.register_entity(":__builtin:item", {
|
||||
end,
|
||||
|
||||
on_step = function(self, dtime)
|
||||
local time = tonumber(minetest.setting_get("remove_items"))
|
||||
if not time then
|
||||
time = 600
|
||||
end
|
||||
if not self.timer then
|
||||
self.timer = 0
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user