mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-12-23 16:39:33 +01:00
Localize 2 endermen vars
This commit is contained in:
parent
d230543567
commit
99f161ca80
1 changed files with 2 additions and 2 deletions
|
@ -282,7 +282,7 @@ mobs:register_mob("mobs_mc:enderman", {
|
||||||
local enderpos = self.object:get_pos()
|
local enderpos = self.object:get_pos()
|
||||||
local objs = minetest.get_objects_inside_radius(enderpos, 4)
|
local objs = minetest.get_objects_inside_radius(enderpos, 4)
|
||||||
for n = 1, #objs do
|
for n = 1, #objs do
|
||||||
obj = objs[n]
|
local obj = objs[n]
|
||||||
if obj then
|
if obj then
|
||||||
if minetest.is_player(obj) then
|
if minetest.is_player(obj) then
|
||||||
-- Warp from players during day.
|
-- Warp from players during day.
|
||||||
|
@ -290,7 +290,7 @@ mobs:register_mob("mobs_mc:enderman", {
|
||||||
self:teleport(nil)
|
self:teleport(nil)
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
lua = obj:get_luaentity()
|
local lua = obj:get_luaentity()
|
||||||
if lua then
|
if lua then
|
||||||
if lua.name == "mcl_bows:arrow_entity" then
|
if lua.name == "mcl_bows:arrow_entity" then
|
||||||
self:teleport(nil)
|
self:teleport(nil)
|
||||||
|
|
Loading…
Reference in a new issue