9
0
mirror of https://github.com/LeavesMC/Leaves.git synced 2025-12-22 00:19:33 +00:00

Update Paper

This commit is contained in:
violetc
2024-10-12 13:23:26 +08:00
parent 6c5cc79088
commit b33c46c635
18 changed files with 58 additions and 58 deletions

View File

@@ -6,7 +6,7 @@ Subject: [PATCH] Skip entity move if movement is zero
This patch is Powered by Gale(https://github.com/GaleMC/Gale)
diff --git a/src/main/java/net/minecraft/world/entity/Entity.java b/src/main/java/net/minecraft/world/entity/Entity.java
index 715f61b7715502aec948bd0bde02a2e45350421f..d27ec46cd0980ab8b554452300b4eb2dd3c92492 100644
index 8c6f9911c3ec32909a0830dc5eee6442ff42d41c..5f4dd9b08638d8a28dfdce2cc5a320099b72055b 100644
--- a/src/main/java/net/minecraft/world/entity/Entity.java
+++ b/src/main/java/net/minecraft/world/entity/Entity.java
@@ -323,6 +323,7 @@ public abstract class Entity implements SyncedDataHolder, Nameable, EntityAccess
@@ -17,7 +17,7 @@ index 715f61b7715502aec948bd0bde02a2e45350421f..d27ec46cd0980ab8b554452300b4eb2d
public boolean onGround;
public boolean horizontalCollision;
public boolean verticalCollision;
@@ -1113,6 +1114,13 @@ public abstract class Entity implements SyncedDataHolder, Nameable, EntityAccess
@@ -1115,6 +1116,13 @@ public abstract class Entity implements SyncedDataHolder, Nameable, EntityAccess
// Paper end - detailed watchdog information
public void move(MoverType movementType, Vec3 movement) {
@@ -31,7 +31,7 @@ index 715f61b7715502aec948bd0bde02a2e45350421f..d27ec46cd0980ab8b554452300b4eb2d
final Vec3 originalMovement = movement; // Paper - Expose pre-collision velocity
// Paper start - detailed watchdog information
ca.spottedleaf.moonrise.common.util.TickThread.ensureTickThread("Cannot move an entity off-main");
@@ -4164,6 +4172,7 @@ public abstract class Entity implements SyncedDataHolder, Nameable, EntityAccess
@@ -4166,6 +4174,7 @@ public abstract class Entity implements SyncedDataHolder, Nameable, EntityAccess
}
public final void setBoundingBox(AABB boundingBox) {