1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2024-11-15 15:00:34 +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:
crabman77 2015-03-31 01:33:36 +02:00
parent 1cde302446
commit 06bd1f95d5

View File

@ -1,3 +1,9 @@
local time = tonumber(minetest.setting_get("remove_items"))
if not time then
time = 600
end
minetest.register_entity(":__builtin:item", { minetest.register_entity(":__builtin:item", {
initial_properties = { initial_properties = {
hp_max = 1, hp_max = 1,
@ -79,10 +85,6 @@ minetest.register_entity(":__builtin:item", {
end, end,
on_step = function(self, dtime) 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 if not self.timer then
self.timer = 0 self.timer = 0
end end