do not store the light level
This commit is contained in:
parent
fa6a016ca2
commit
f3bd7bea3e
4
init.lua
4
init.lua
@ -48,7 +48,9 @@ minetest.register_tool("replacer_setter:setter",
|
|||||||
local node = minetest.get_node_or_nil( pos )
|
local node = minetest.get_node_or_nil( pos )
|
||||||
new_pattern = "default:dirt 0 0";
|
new_pattern = "default:dirt 0 0";
|
||||||
if( node ~= nil and node.name ) then
|
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
|
||||||
end
|
end
|
||||||
local pname = user:get_player_name()
|
local pname = user:get_player_name()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user