From 80ff5f12072364a3c11ab9342dd3d121c0180b1d Mon Sep 17 00:00:00 2001 From: cora Date: Fri, 14 Oct 2022 00:24:44 +0200 Subject: [PATCH] Fix enderpos global warning --- mods/ENTITIES/mobs_mc/enderman.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/ENTITIES/mobs_mc/enderman.lua b/mods/ENTITIES/mobs_mc/enderman.lua index 4e08ae7316..2849b62b66 100644 --- a/mods/ENTITIES/mobs_mc/enderman.lua +++ b/mods/ENTITIES/mobs_mc/enderman.lua @@ -311,7 +311,7 @@ mcl_mobs:register_mob("mobs_mc:enderman", { end, do_custom = function(self, dtime) -- RAIN DAMAGE / EVASIVE WARP BEHAVIOUR HERE. - enderpos = self.object:get_pos() + local enderpos = self.object:get_pos() local dim = mcl_worlds.pos_to_dimension(enderpos) if dim == "overworld" then if mcl_weather.state == "rain" or mcl_weather.state == "lightning" then