mirror of
https://github.com/Winds-Studio/Leaf.git
synced 2025-12-27 19:09:22 +00:00
Backport from ver/1.21.7
- Better warning message for discouraging Maven Central as CDN - Fix infinite loop in dismount loc check
This commit is contained in:
@@ -3,6 +3,7 @@ From: Taiyou06 <kaandindar21@gmail.com>
|
||||
Date: Sun, 16 Feb 2025 01:13:04 +0100
|
||||
Subject: [PATCH] count all chunks for ticking
|
||||
|
||||
|
||||
diff --git a/net/minecraft/server/level/ServerChunkCache.java b/net/minecraft/server/level/ServerChunkCache.java
|
||||
index e07fdd22e08cb4e30cf606c055e85b5946e8c046..432c98b582ab40f893835a7a24ef9bbdacc49bd7 100644
|
||||
--- a/net/minecraft/server/level/ServerChunkCache.java
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||
From: Dreeam <61569423+Dreeam-qwq@users.noreply.github.com>
|
||||
Date: Fri, 11 Jul 2025 06:10:41 +0800
|
||||
Subject: [PATCH] Fix infinite loop in dismount loc check
|
||||
|
||||
Very fun VineFlower decompile issue.
|
||||
|
||||
Invert the condition to prevent infinite loop
|
||||
|
||||
diff --git a/net/minecraft/world/entity/animal/horse/AbstractHorse.java b/net/minecraft/world/entity/animal/horse/AbstractHorse.java
|
||||
index 56dc7011ed07f0bd5870fbadde2b5c0c630c5edd..c2c14958254df77b9b18c6f4a0ea5e68fc79d44e 100644
|
||||
--- a/net/minecraft/world/entity/animal/horse/AbstractHorse.java
|
||||
+++ b/net/minecraft/world/entity/animal/horse/AbstractHorse.java
|
||||
@@ -1223,7 +1223,7 @@ public abstract class AbstractHorse extends Animal implements ContainerListener,
|
||||
}
|
||||
|
||||
mutableBlockPos.move(Direction.UP);
|
||||
- } while (!(mutableBlockPos.getY() < d3));
|
||||
+ } while (mutableBlockPos.getY() < d3); // Leaf - Fix infinite loop in dismount loc check
|
||||
}
|
||||
|
||||
return null;
|
||||
Reference in New Issue
Block a user