forked from mtcontrib/replacer
removed unregistered globals
This commit is contained in:
parent
0ffde81c19
commit
c549c489f9
@ -21,12 +21,12 @@ minetest.register_tool( "replacer:inspect",
|
|||||||
|
|
||||||
on_use = function(itemstack, user, pointed_thing)
|
on_use = function(itemstack, user, pointed_thing)
|
||||||
|
|
||||||
return replacer.inspect( itemstack, user, pointed_thing, above, true ); --false );
|
return replacer.inspect( itemstack, user, pointed_thing, nil, true ); --false );
|
||||||
end,
|
end,
|
||||||
|
|
||||||
on_place = function(itemstack, placer, pointed_thing)
|
on_place = function(itemstack, placer, pointed_thing)
|
||||||
|
|
||||||
return replacer.inspect( itemstack, placer, pointed_thing, above, true );
|
return replacer.inspect( itemstack, placer, pointed_thing, nil, true );
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -128,6 +128,7 @@ replacer.group_placeholder[ 'group:leaves'] = 'default:leaves';
|
|||||||
replacer.group_placeholder[ 'group:wood_slab'] = 'stairs:slab_wood';
|
replacer.group_placeholder[ 'group:wood_slab'] = 'stairs:slab_wood';
|
||||||
replacer.group_placeholder[ 'group:wool' ] = 'wool:white';
|
replacer.group_placeholder[ 'group:wool' ] = 'wool:white';
|
||||||
|
|
||||||
|
|
||||||
-- handle the standard dye color groups
|
-- handle the standard dye color groups
|
||||||
if( minetest.get_modpath("dye") and dye and dye.basecolors) then
|
if( minetest.get_modpath("dye") and dye and dye.basecolors) then
|
||||||
for i,color in ipairs( dye.basecolors ) do
|
for i,color in ipairs( dye.basecolors ) do
|
||||||
@ -159,7 +160,7 @@ replacer.image_button_link = function( stack_string )
|
|||||||
end
|
end
|
||||||
|
|
||||||
replacer.add_circular_saw_receipe = function( node_name, receipes )
|
replacer.add_circular_saw_receipe = function( node_name, receipes )
|
||||||
if( not( node_name ) or not( circular_saw ) or not( circular_saw.names) or (node_name=='moreblocks:circular_saw')) then
|
if( not( node_name ) or not( minetest.get_modpath("moreblocks")) or not( circular_saw ) or not( circular_saw.names) or (node_name=='moreblocks:circular_saw')) then
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
local help = node_name:split( ':' );
|
local help = node_name:split( ':' );
|
||||||
@ -183,7 +184,7 @@ help[1]='default';
|
|||||||
end
|
end
|
||||||
|
|
||||||
replacer.add_colormachine_receipe = function( node_name, receipes )
|
replacer.add_colormachine_receipe = function( node_name, receipes )
|
||||||
if( not( colormachine )) then
|
if( not( minetest.get_modpath("colormachine")) or not( colormachine )) then
|
||||||
return;
|
return;
|
||||||
end
|
end
|
||||||
local res = colormachine.get_node_name_painted( node_name, "" );
|
local res = colormachine.get_node_name_painted( node_name, "" );
|
||||||
|
Loading…
Reference in New Issue
Block a user