Fix the terrain finder miscalculating the size of undead camps
This commit is contained in:
parent
e014f4fff9
commit
313b59d1d6
@ -52,7 +52,7 @@ public class EventTerrainFinder
|
|||||||
loc.Set(UtilBlock.getHighest(chunk.getWorld(), chunk.getBlock(0, 0, 0)).getLocation());
|
loc.Set(UtilBlock.getHighest(chunk.getWorld(), chunk.getBlock(0, 0, 0)).getLocation());
|
||||||
});
|
});
|
||||||
|
|
||||||
if (!UtilWorld.isBoxInWorldBorder(world, loc.Get().clone().subtract(size, vert, size), loc.Get().clone().add(size, vert, size)))
|
if (!UtilWorld.isBoxInWorldBorder(world, loc.Get().clone().subtract(size * 2, vert, size * 2), loc.Get().clone().add(size * 2, vert, size * 2)))
|
||||||
{
|
{
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user