From b981444b7cf15cb78af27de4198899861f13b0a0 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Fri, 8 Mar 2024 14:55:43 +0100 Subject: [PATCH] Fix crash when placing rope in non-creative --- src/rope.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rope.lua b/src/rope.lua index 6aa5d43..fb4acd9 100644 --- a/src/rope.lua +++ b/src/rope.lua @@ -37,7 +37,7 @@ function rope.place(itemstack, placer, pointed_thing) local start_pos = table.copy(pos) local ropes_to_place = 0 local new_rope_nodes = {} - while oldnode.name == "air" and (creative or (ropes_to_place < itemstack:get_size())) and ropes_to_place < max_ropes do + while oldnode.name == "air" and (creative or (ropes_to_place < itemstack:get_count())) and ropes_to_place < max_ropes do -- Stop extending rope into protected area if minetest.is_protected(pos, pname) and not protection_bypass then break