Dragon respawn changes

This commit is contained in:
paulevsGitch 2021-07-09 11:39:46 +03:00
parent 2ea71cf8d6
commit b5f3a4f511

View file

@ -72,7 +72,7 @@ public class EndDragonFightMixin {
BlockPos center = GeneratorOptions.getPortalPos().above(5); BlockPos center = GeneratorOptions.getPortalPos().above(5);
for (Direction dir : BlocksHelper.HORIZONTAL) { for (Direction dir : BlocksHelper.HORIZONTAL) {
BlockPos central = center.relative(dir, 4); BlockPos central = center.relative(dir, 4);
List<EndCrystal> crystalList = level.getEntitiesOfClass(EndCrystal.class, new AABB(central.below(10).south().west(), central.above(10).north().east())); List<EndCrystal> crystalList = level.getEntitiesOfClass(EndCrystal.class, new AABB(central.below(255).south().west(), central.above(255).north().east()));
int count = crystalList.size(); int count = crystalList.size();
for (int n = 0; n < count; n++) { for (int n = 0; n < count; n++) {