Replace double-quoted strings with single-quoted
This commit is contained in:
10
spawn.lua
10
spawn.lua
@@ -5,8 +5,8 @@ local time_hr = time_min * 60
|
||||
local time_day = time_hr * 24
|
||||
|
||||
minetest.register_abm({
|
||||
nodenames = {"default:dirt_with_grass","default:stone"},
|
||||
neighbors = {"air"},
|
||||
nodenames = {'default:dirt_with_grass','default:stone'},
|
||||
neighbors = {'air'},
|
||||
interval = time_min * 20, -- Run spawn function every 20 minutes
|
||||
chance = 9000,
|
||||
action = function(pos, node, _, active_object_count_wider)
|
||||
@@ -26,13 +26,13 @@ minetest.register_abm({
|
||||
if pos.y > 31000 then
|
||||
return
|
||||
end
|
||||
if minetest.get_node(pos).name ~= "air" then
|
||||
if minetest.get_node(pos).name ~= 'air' then
|
||||
return
|
||||
end
|
||||
pos.y = pos.y+1
|
||||
if minetest.get_node(pos).name ~= "air" then
|
||||
if minetest.get_node(pos).name ~= 'air' then
|
||||
return
|
||||
end
|
||||
minetest.add_entity(pos,"sneaker:sneaker")
|
||||
minetest.add_entity(pos,'sneaker:sneaker')
|
||||
end
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user