From 07b2143d409a4cc15e880f1919e3e50da7c49698 Mon Sep 17 00:00:00 2001 From: paulevsGitch Date: Tue, 5 Jan 2021 01:46:54 +0300 Subject: [PATCH] Search fix --- src/main/java/ru/betterend/blocks/EndPortalBlock.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/ru/betterend/blocks/EndPortalBlock.java b/src/main/java/ru/betterend/blocks/EndPortalBlock.java index 806e8165..81470d25 100644 --- a/src/main/java/ru/betterend/blocks/EndPortalBlock.java +++ b/src/main/java/ru/betterend/blocks/EndPortalBlock.java @@ -99,7 +99,7 @@ public class EndPortalBlock extends NetherPortalBlock implements IRenderTypeable Direction direction = Direction.EAST; BlockPos.Mutable checkPos = basePos.mutableCopy(); for (int step = 1; step < 64; step++) { - for (int i = 0; i < step; i++) { + for (int i = 0; i < (step >> 1); i++) { checkPos.setY(5); int ceil = world.getChunk(basePos).sampleHeightmap(Heightmap.Type.WORLD_SURFACE, checkPos.getX(), checkPos.getZ()) + 1; if (ceil < 5) continue;