do not store the light level

This commit is contained in:
Sokomine 2022-05-22 21:34:59 +02:00
parent fa6a016ca2
commit f3bd7bea3e
1 changed files with 3 additions and 1 deletions

View File

@ -48,7 +48,9 @@ minetest.register_tool("replacer_setter:setter",
local node = minetest.get_node_or_nil( pos )
new_pattern = "default:dirt 0 0";
if( node ~= nil and node.name ) then
new_pattern = node.name..' '..node.param1..' '..node.param2;
-- there is very little point in storing the light value
--new_pattern = node.name..' '..node.param1..' '..node.param2
new_pattern = node.name..' 0 '..node.param2
end
end
local pname = user:get_player_name()