1
0
Fork 0

Localize 2 endermen vars

This commit is contained in:
Wuzzy 2020-07-11 11:53:58 +02:00
parent d230543567
commit 99f161ca80
1 changed files with 2 additions and 2 deletions

View File

@ -282,7 +282,7 @@ mobs:register_mob("mobs_mc:enderman", {
local enderpos = self.object:get_pos()
local objs = minetest.get_objects_inside_radius(enderpos, 4)
for n = 1, #objs do
obj = objs[n]
local obj = objs[n]
if obj then
if minetest.is_player(obj) then
-- Warp from players during day.
@ -290,7 +290,7 @@ mobs:register_mob("mobs_mc:enderman", {
self:teleport(nil)
end
else
lua = obj:get_luaentity()
local lua = obj:get_luaentity()
if lua then
if lua.name == "mcl_bows:arrow_entity" then
self:teleport(nil)