From 6544aac4d60a8b5f1dc1762fb7700b75f0288596 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Wed, 1 Mar 2017 15:47:36 +0100 Subject: [PATCH] Don't allow to place ladders over ladders --- mods/ITEMS/mcl_core/nodes.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mods/ITEMS/mcl_core/nodes.lua b/mods/ITEMS/mcl_core/nodes.lua index e1b89854f..7cd56b3a1 100644 --- a/mods/ITEMS/mcl_core/nodes.lua +++ b/mods/ITEMS/mcl_core/nodes.lua @@ -1176,8 +1176,10 @@ minetest.register_node("mcl_core:ladder", { local node = minetest.get_node(under) local def = minetest.registered_nodes[node.name] local groups = def.groups + + -- Don't allow to place the ladder at particular nodes if (groups and (groups.glass or groups.leaves or groups.slab)) or - node.name == "mcl_core:ice" or node.name == "mcl_nether:glowstone" or node.name == "mcl_ocean:sea_lantern" then + node.name == "mcl_core:ladder" or node.name == "mcl_core:ice" or node.name == "mcl_nether:glowstone" or node.name == "mcl_ocean:sea_lantern" then return itemstack end