Fix enderpos global warning

This commit is contained in:
cora 2022-10-14 00:24:44 +02:00
parent 3e312af3b9
commit 80ff5f1207

View File

@ -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