From 719b39d99b806c36a55fd66adbde8958cb97e8fb Mon Sep 17 00:00:00 2001 From: shamoanjac Date: Mon, 8 Aug 2016 23:36:56 +0200 Subject: [PATCH] Fixed infinite claiming bug --- chatcommands.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chatcommands.lua b/chatcommands.lua index d861bd7..a14a44f 100644 --- a/chatcommands.lua +++ b/chatcommands.lua @@ -161,7 +161,7 @@ factions.register_command ("claim", { description = "Claim the plot of land you're on.", on_success = function(player, faction, pos, chunkpos, args) local chunk = factions.chunks[chunkpos] - if not chunk then + if not chunk and faction:can_claim_chunk(chunkpos) then minetest.chat_send_player(player, "Claming chunk "..chunkpos) faction:claim_chunk(chunkpos) return true