mirror of
				https://github.com/minetest-mods/moreblocks.git
				synced 2025-10-31 13:55:24 +01:00 
			
		
		
		
	Allow stair/slab crafting by default, can be disabled in _config.txt
This commit is contained in:
		| @@ -115,8 +115,10 @@ function register_slab(modname, subname, recipeitem, groups, images, description | ||||
| 		end | ||||
| 	}) | ||||
|  | ||||
| 	-- Unregister default recipes | ||||
| 	-- Unregister default recipes, optional, see _config.txt | ||||
|  | ||||
| if allow_stair_slab_crafting == false | ||||
| then | ||||
| 	minetest.register_craft({ | ||||
| 		output = "moreblocks:nothing 1", | ||||
| 		recipe = { | ||||
| @@ -124,4 +126,5 @@ function register_slab(modname, subname, recipeitem, groups, images, description | ||||
| 		}, | ||||
| 	}) | ||||
| end | ||||
| end | ||||
|  | ||||
|   | ||||
| @@ -225,8 +225,10 @@ function register_stair(modname, subname, recipeitem, groups, images, descriptio | ||||
| 		end | ||||
| 	}) | ||||
|  | ||||
| 	-- Unregister default recipes | ||||
| 	-- Unregister default recipes, optional, see _config.txt | ||||
|  | ||||
| if allow_stair_slab_crafting == false | ||||
| then | ||||
| 	minetest.register_craft({ | ||||
| 		output = "moreblocks:nothing 1", | ||||
| 		recipe = { | ||||
| @@ -245,4 +247,5 @@ function register_stair(modname, subname, recipeitem, groups, images, descriptio | ||||
| 		}, | ||||
| 	}) | ||||
| end | ||||
| end | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user