From f9cd2500c039abd783f95c4f603a4f9b94b16f0f Mon Sep 17 00:00:00 2001 From: teknomunk Date: Tue, 27 Aug 2024 17:39:41 -0500 Subject: [PATCH] Don't crash trying to right click unknown nodes while holding honeycomb --- mods/ITEMS/mcl_honey/init.lua | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/mods/ITEMS/mcl_honey/init.lua b/mods/ITEMS/mcl_honey/init.lua index 127c788b0..7f39a3c59 100644 --- a/mods/ITEMS/mcl_honey/init.lua +++ b/mods/ITEMS/mcl_honey/init.lua @@ -18,10 +18,9 @@ function mcl_honey.wax_block(pos, node, player, itemstack) if def and def._mcl_waxed_variant then node.name = def._mcl_waxed_variant + elseif def and def.on_rightclick then + return def.on_rightclick(pos, node, player, itemstack) else - if def.on_rightclick then - return def.on_rightclick(pos, node, player, itemstack) - end return end