Fix record_protection_violation call (#23)

Fixes crash caused by simple mistake in call arguments
This commit is contained in:
SX 2021-12-18 20:27:53 +02:00 committed by GitHub
parent d2a486d02a
commit b89f6c6a21
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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