1
0
Fork 0

Fix enderpos global warning

This commit is contained in:
cora 2022-10-14 00:24:44 +02:00
parent 3e312af3b9
commit 80ff5f1207
1 changed files with 1 additions and 1 deletions

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