From 747f341e122ca77f5b78cc30f48b30c13b2d7942 Mon Sep 17 00:00:00 2001 From: Lumidify Productions Date: Thu, 4 Aug 2016 17:13:39 +0200 Subject: [PATCH] Fix guard settings bug There was a small bug where the dropdown for follow or stand in the guard settings always showed follow by default, no matter what the current order actually was. --- mods/lottmobs/functions.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/lottmobs/functions.lua b/mods/lottmobs/functions.lua index dfff5aaf..b994cdfb 100644 --- a/mods/lottmobs/functions.lua +++ b/mods/lottmobs/functions.lua @@ -94,7 +94,7 @@ local get_guard_formspec = function(self) if self.blacklist == nil then self.blacklist = {} end - if order == "stand" then selected_idx = 2 end + if self.order == "stand" then selected_idx = 2 end return "size[10,9]".. "label[1,1;Name:\t"..self.game_name.."]".. "dropdown[1,2;2;order;follow,stand;"..selected_idx.."]"..