Removed useless patch
End gateway searching is already fixed in sync teleportation patch now
This commit is contained in:
@@ -1,21 +0,0 @@
|
|||||||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
||||||
From: MrHua269 <mrhua269@gmail.com>
|
|
||||||
Date: Sun, 9 Mar 2025 11:39:01 +0800
|
|
||||||
Subject: [PATCH] Do not search the block out of current region
|
|
||||||
|
|
||||||
Skip getting the blocks don't belong to current tickregion.
|
|
||||||
|
|
||||||
notice: this bug is actually caused by another bug of the teleportAsync implementation.
|
|
||||||
|
|
||||||
diff --git a/net/minecraft/world/level/block/entity/TheEndGatewayBlockEntity.java b/net/minecraft/world/level/block/entity/TheEndGatewayBlockEntity.java
|
|
||||||
index fc529ece01d8a85e600eb8910662010ab6851d82..7364515b7e489c5e97c7ca693458ff2ae9335c6e 100644
|
|
||||||
--- a/net/minecraft/world/level/block/entity/TheEndGatewayBlockEntity.java
|
|
||||||
+++ b/net/minecraft/world/level/block/entity/TheEndGatewayBlockEntity.java
|
|
||||||
@@ -432,6 +432,7 @@ public class TheEndGatewayBlockEntity extends TheEndPortalBlockEntity {
|
|
||||||
if (i != 0 || i1 != 0 || allowBedrock) {
|
|
||||||
for (int y = level.getMaxY(); y > (blockPos == null ? level.getMinY() : blockPos.getY()); y--) {
|
|
||||||
BlockPos blockPos1 = new BlockPos(pos.getX() + i, y, pos.getZ() + i1);
|
|
||||||
+ if (!ca.spottedleaf.moonrise.common.util.TickThread.isTickThreadFor((Level) level, blockPos1)) continue; // Luminol - Do not search the block out of current region as we might be at the edge of the tickregion
|
|
||||||
BlockState blockState = level.getBlockState(blockPos1);
|
|
||||||
if (blockState.isCollisionShapeFullBlock(level, blockPos1) && (allowBedrock || !blockState.is(Blocks.BEDROCK))) {
|
|
||||||
blockPos = blockPos1;
|
|
||||||
Reference in New Issue
Block a user