mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-22 18:41:09 +01:00
Performance improvement 2
This commit is contained in:
parent
5093f31f28
commit
16a4448c5f
1 changed files with 1 additions and 1 deletions
|
@ -447,7 +447,7 @@ mcl_mobs.register_mob("mobs_mc:enderman", {
|
||||||
|
|
||||||
-- ATTACK ENDERMITE
|
-- ATTACK ENDERMITE
|
||||||
local enderpos = self.object:get_pos()
|
local enderpos = self.object:get_pos()
|
||||||
if math.random(1,20) == 1 then
|
if math.random(1,140) == 1 then
|
||||||
local mobsnear = minetest.get_objects_inside_radius(enderpos, 64)
|
local mobsnear = minetest.get_objects_inside_radius(enderpos, 64)
|
||||||
for n=1, #mobsnear do
|
for n=1, #mobsnear do
|
||||||
local mob = mobsnear[n]
|
local mob = mobsnear[n]
|
||||||
|
|
Loading…
Reference in a new issue