From db93277a988001bcce2a2d10999897be7b8ee017 Mon Sep 17 00:00:00 2001 From: Thomas--S Date: Fri, 17 Jun 2016 21:15:02 +0200 Subject: 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. --- stairsplus/slopes.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'stairsplus/slopes.lua') diff --git a/stairsplus/slopes.lua b/stairsplus/slopes.lua index 49058e3..dfb4bcb 100644 --- a/stairsplus/slopes.lua +++ b/stairsplus/slopes.lua @@ -231,7 +231,7 @@ function stairsplus:register_slope(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.. ":slope_" ..fields.drop..alternate end minetest.register_node(":" ..modname.. ":slope_" ..subname..alternate, def) -- cgit v1.2.3