From b89f6c6a217b9a473bbf5e47896c642b503d507a Mon Sep 17 00:00:00 2001 From: SX <50966843+S-S-X@users.noreply.github.com> Date: Sat, 18 Dec 2021 20:27:53 +0200 Subject: [PATCH] Fix record_protection_violation call (#23) Fixes crash caused by simple mistake in call arguments --- extendingladder.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extendingladder.lua b/extendingladder.lua index 80866f6..ae023a8 100644 --- a/extendingladder.lua +++ b/extendingladder.lua @@ -111,7 +111,7 @@ local ladder_extender = function(pos, node, clicker, itemstack, pointed_thing, l -- If there's enough support, build a new ladder segment if behind_pos.y > target_height then if minetest.is_protected(pos, clicker:get_player_name()) then - minetest.record_protection_violation(clicker:get_player_name()) + minetest.record_protection_violation(pos, clicker:get_player_name()) else minetest.set_node(pos, {name=ladder_node, param2=param2}) if not minetest.settings:get_bool("creative_mode") then