9
0
mirror of https://github.com/Winds-Studio/Leaf.git synced 2025-12-23 17:09:29 +00:00

[ci skip] Move some useless patches from work to removed

This commit is contained in:
Dreeam
2025-05-26 01:19:25 +08:00
parent da18026680
commit 2d0561db5f
3 changed files with 4 additions and 2 deletions

View File

@@ -4,6 +4,7 @@ Date: Thu, 1 Aug 2024 00:43:05 +0900
Subject: [PATCH] ShreddedPaper: Don't block main thread in Subject: [PATCH] ShreddedPaper: Don't block main thread in
Connection#syncAfterConfigurationChange Connection#syncAfterConfigurationChange
Removed since Leaf 1.21.4, replaced by async config switch
diff --git a/net/minecraft/network/Connection.java b/net/minecraft/network/Connection.java diff --git a/net/minecraft/network/Connection.java b/net/minecraft/network/Connection.java
index 00a82873d226f113278632a53c0faca420dd67d4..5b46036868b6c9d082e35591e58735e16adaae62 100644 index 00a82873d226f113278632a53c0faca420dd67d4..5b46036868b6c9d082e35591e58735e16adaae62 100644

View File

@@ -3,6 +3,7 @@ From: Taiyou06 <kaandindar21@gmail.com>
Date: Fri, 8 Nov 2024 00:54:42 +0100 Date: Fri, 8 Nov 2024 00:54:42 +0100
Subject: [PATCH] Use MCUtil.asyncExecutor for MAIN_WORKER_EXECUTOR Subject: [PATCH] Use MCUtil.asyncExecutor for MAIN_WORKER_EXECUTOR
Removed since Leaf 1.21.3
diff --git a/src/main/java/net/minecraft/Util.java b/src/main/java/net/minecraft/Util.java diff --git a/src/main/java/net/minecraft/Util.java b/src/main/java/net/minecraft/Util.java
index 815253d03b85a7a476c1efdeca9496fd64afc137..bb4c9bbebaefe9a0c7d213e9b2b07308e684dc7c 100644 index 815253d03b85a7a476c1efdeca9496fd64afc137..bb4c9bbebaefe9a0c7d213e9b2b07308e684dc7c 100644

View File

@@ -29,7 +29,7 @@ index 50cf63666071f5d01a85dfc6c6c45c19b05d8ec2..ef53b9f307572dd5dc99d02e017d6b2d
if (this.getHealth() != this.lastSentHealth if (this.getHealth() != this.lastSentHealth
|| this.lastSentFood != this.foodData.getFoodLevel() || this.lastSentFood != this.foodData.getFoodLevel()
diff --git a/net/minecraft/world/entity/player/Player.java b/net/minecraft/world/entity/player/Player.java diff --git a/net/minecraft/world/entity/player/Player.java b/net/minecraft/world/entity/player/Player.java
index 8469cf9cacebea3fdd855f6c3e9e2cf61c78b8ac..d39757fae68580abcb13804e01587e542f1e087d 100644 index 8469cf9cacebea3fdd855f6c3e9e2cf61c78b8ac..76d85632e1364e71a2aa15dbef41c62422ffd7af 100644
--- a/net/minecraft/world/entity/player/Player.java --- a/net/minecraft/world/entity/player/Player.java
+++ b/net/minecraft/world/entity/player/Player.java +++ b/net/minecraft/world/entity/player/Player.java
@@ -631,7 +631,14 @@ public abstract class Player extends LivingEntity { @@ -631,7 +631,14 @@ public abstract class Player extends LivingEntity {
@@ -39,7 +39,7 @@ index 8469cf9cacebea3fdd855f6c3e9e2cf61c78b8ac..d39757fae68580abcb13804e01587e54
+ // Leaf start - Only tick items at hand + // Leaf start - Only tick items at hand
+ if (org.dreeam.leaf.config.modules.opt.OptimizeItemTicking.onlyTickItemsInHand) { + if (org.dreeam.leaf.config.modules.opt.OptimizeItemTicking.onlyTickItemsInHand) {
+ this.getMainHandItem().inventoryTick(this.level(), this, 0, true); + this.getMainHandItem().inventoryTick(this.level(), this, 0, true);
+ this.getOffhandItem().inventoryTick(this.level(), this, 0, true); + this.getOffhandItem().inventoryTick(this.level(), this, 1, true);
+ } else { + } else {
this.inventory.tick(); this.inventory.tick();
+ } + }