mirror of
				https://github.com/minetest-mods/moreblocks.git
				synced 2025-10-31 22:05:23 +01:00 
			
		
		
		
	Add support for the alternative drop syntax (#46)
Until now, when the moreblocks node for a node with the alternative drop syntax were registered, the game crashed.
This commit is contained in:
		| @@ -117,7 +117,7 @@ function stairsplus:register_stair(modname, subname, recipeitem, fields) | ||||
| 		def.on_place = minetest.rotate_node | ||||
| 		def.description = desc | ||||
| 		def.groups = stairsplus:prepare_groups(fields.groups) | ||||
| 		if fields.drop then | ||||
| 		if fields.drop and not type(fields.drop) == "table" then | ||||
| 			def.drop = modname .. ":stair_" .. fields.drop .. alternate | ||||
| 		end | ||||
| 		minetest.register_node(":" .. modname .. ":stair_" .. subname .. alternate, def) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user