mirror of
https://github.com/minetest-mods/ropes.git
synced 2024-11-28 02:13:43 +01:00
Fix record_protection_violation call (#23)
Fixes crash caused by simple mistake in call arguments
This commit is contained in:
parent
d2a486d02a
commit
b89f6c6a21
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user