mirror of
				https://github.com/minetest-mods/moreblocks.git
				synced 2025-11-04 15:35:29 +01:00 
			
		
		
		
	Stairs+ nodes are not in wood and stone groups anymore to not make them usable in crafting.
This commit is contained in:
		@@ -29,7 +29,11 @@ for _, name in pairs(default_nodes) do
 | 
			
		||||
	local nodename = "default:"..name
 | 
			
		||||
	local ndef = minetest.registered_nodes[nodename]
 | 
			
		||||
	local groups = {}
 | 
			
		||||
	for k, v in pairs(ndef.groups) do groups[k] = v end
 | 
			
		||||
	for k, v in pairs(ndef.groups)
 | 
			
		||||
		do if k ~= "wood" and k ~= "stone" then -- Ignore wood and stone groups to not make them usable in crafting.
 | 
			
		||||
			groups[k] = v
 | 
			
		||||
		end
 | 
			
		||||
	end
 | 
			
		||||
	local drop
 | 
			
		||||
	if type(ndef.drop) == "string" then
 | 
			
		||||
		drop = ndef.drop:sub(9)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user