-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
13 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...anges-commit-852ea89d9eaa3af12ace88.patch → ...anges-commit-1f3ad021d3cb996f499d62.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 | ||
From: foss-mc <[email protected]> | ||
Date: Tue, 23 Apr 2024 09:52:58 +0800 | ||
Date: Fri, 31 May 2024 23:53:25 +0800 | ||
Subject: [PATCH] pufferfish API Changes commit | ||
852ea89d9eaa3af12ace8839275fb8116fc98b08 | ||
1f3ad021d3cb996f499d627676d688aeb46ffef9 | ||
|
||
Add Sentry | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 | ||
From: foss-mc <[email protected]> | ||
Date: Tue, 23 Apr 2024 09:52:58 +0800 | ||
Date: Fri, 31 May 2024 23:53:25 +0800 | ||
Subject: [PATCH] pufferfish Server Changes commit | ||
852ea89d9eaa3af12ace8839275fb8116fc98b08 | ||
1f3ad021d3cb996f499d627676d688aeb46ffef9 | ||
|
||
Pufferfish Utils | ||
|
||
|
@@ -2329,7 +2329,7 @@ index 0af9ed92824ccf30814eceb6a2c2e5c12661c991..67eeb39aede6908d2756e49821ca350e | |
} else { | ||
this.lastTimeStamp = body.timeStamp(); | ||
diff --git a/src/main/java/net/minecraft/server/MinecraftServer.java b/src/main/java/net/minecraft/server/MinecraftServer.java | ||
index 27db614d46dffc2d10f18d79cc5a084f3421d86b..2f4873bd9fcc14a9f6736f845834378641b894e9 100644 | ||
index 2dc07e5ef249636e85ad9c78e3729e9e066a8fe8..3bc2a49eac992d33aa61f786448c03f5a853ed23 100644 | ||
--- a/src/main/java/net/minecraft/server/MinecraftServer.java | ||
+++ b/src/main/java/net/minecraft/server/MinecraftServer.java | ||
@@ -312,6 +312,7 @@ public abstract class MinecraftServer extends ReentrantBlockableEventLoop<TickTa | ||
|
@@ -2617,7 +2617,7 @@ index 502bdc726b7890b00ee36871d905dea44e8719e3..fbffe3dab1b7812b50df5d6bddf4fbdb | |
|
||
if (this.isRainingAt(blockposition)) { | ||
diff --git a/src/main/java/net/minecraft/server/network/ServerGamePacketListenerImpl.java b/src/main/java/net/minecraft/server/network/ServerGamePacketListenerImpl.java | ||
index 860d33ac56680babd87358b1d7d2216dac3f7865..2ae1d53364da7f0e30c642df4e9a62f9e6581432 100644 | ||
index fe2ef36ab5dc4b933abf24dbfd0e811c53239cf0..e725c1c0496383007ffb94c46fc18340666b5e29 100644 | ||
--- a/src/main/java/net/minecraft/server/network/ServerGamePacketListenerImpl.java | ||
+++ b/src/main/java/net/minecraft/server/network/ServerGamePacketListenerImpl.java | ||
@@ -1135,6 +1135,7 @@ public class ServerGamePacketListenerImpl extends ServerCommonPacketListenerImpl | ||
|
@@ -2959,7 +2959,7 @@ index e9bb7feb591032904516d1b9374f486d8a7d066c..366121188c5abb550ed0a5f99d25c001 | |
if (this.isSpectator()) { | ||
return false; | ||
diff --git a/src/main/java/net/minecraft/world/entity/Mob.java b/src/main/java/net/minecraft/world/entity/Mob.java | ||
index 2439f8d48daca7329049436414f06a36b4b79029..4cf2963fdbe9003fd18ac8c2035ccded57c02abd 100644 | ||
index d2c92df28475f0a32a0134324eb0a5609a9afb99..a6b48b4eab6e0e98205fd9cafc3cde5ad39651af 100644 | ||
--- a/src/main/java/net/minecraft/world/entity/Mob.java | ||
+++ b/src/main/java/net/minecraft/world/entity/Mob.java | ||
@@ -222,14 +222,16 @@ public abstract class Mob extends LivingEntity implements Targeting { | ||
|
@@ -3067,10 +3067,10 @@ index 38af5c7280366fd6ec077f3d914ea5f3ee77451a..d78e1f6191738d426968efc24e734f04 | |
public boolean hasTasks() { | ||
for (WrappedGoal task : this.availableGoals) { | ||
diff --git a/src/main/java/net/minecraft/world/entity/ai/goal/MoveToBlockGoal.java b/src/main/java/net/minecraft/world/entity/ai/goal/MoveToBlockGoal.java | ||
index de7c3654b5d134e380c0d7e8800beb6c10d8a22a..3e544a1b957e7a9bc2c5548baf7f6499a34151eb 100644 | ||
index aee0147649d458b87d92496eda0c1723ebe570d2..89e9ea999d2fbd81a1d74382ef3fcd675fc8b94e 100644 | ||
--- a/src/main/java/net/minecraft/world/entity/ai/goal/MoveToBlockGoal.java | ||
+++ b/src/main/java/net/minecraft/world/entity/ai/goal/MoveToBlockGoal.java | ||
@@ -119,6 +119,7 @@ public abstract class MoveToBlockGoal extends Goal { | ||
@@ -121,6 +121,7 @@ public abstract class MoveToBlockGoal extends Goal { | ||
for (int m = 0; m <= l; m = m > 0 ? -m : 1 - m) { | ||
for (int n = m < l && m > -l ? l : 0; n <= l; n = n > 0 ? -n : 1 - n) { | ||
mutableBlockPos.setWithOffset(blockPos, m, k - 1, n); | ||
|
@@ -3576,7 +3576,7 @@ index da7489986848316fed029b71d1bc4e1248c9c9a8..661acdf4b1f33d150b0caf179e925d31 | |
return new BlockPos(i, l, j); | ||
} | ||
diff --git a/src/main/java/net/minecraft/world/level/biome/Biome.java b/src/main/java/net/minecraft/world/level/biome/Biome.java | ||
index b865115dc5a8c000521abf668251ab1bd8104505..42af3888a155f114901a90d4028bafed5789f58f 100644 | ||
index 64076a452a315090d299a7a58a43fd3b5c1b4e0a..0c317b0147a73a8075e0883f0c132f4db0bdfea7 100644 | ||
--- a/src/main/java/net/minecraft/world/level/biome/Biome.java | ||
+++ b/src/main/java/net/minecraft/world/level/biome/Biome.java | ||
@@ -63,13 +63,18 @@ public final class Biome { | ||
|
@@ -4002,7 +4002,7 @@ index 37a0002bbe6539648db5219bb373e0404ae48dc0..ca0571d232e102c4b177a1ea44b96f5f | |
} | ||
|
||
diff --git a/src/main/java/net/minecraft/world/phys/shapes/EntityCollisionContext.java b/src/main/java/net/minecraft/world/phys/shapes/EntityCollisionContext.java | ||
index 1132658b063c6cd3feb1783ab4d5f5141ab75140..284c76ddb9724b44bb2e93f590685c728e843e6d 100644 | ||
index 88a4a72bb390947dc17e5da09a99b2d1b3ac4621..284c76ddb9724b44bb2e93f590685c728e843e6d 100644 | ||
--- a/src/main/java/net/minecraft/world/phys/shapes/EntityCollisionContext.java | ||
+++ b/src/main/java/net/minecraft/world/phys/shapes/EntityCollisionContext.java | ||
@@ -17,50 +17,69 @@ public class EntityCollisionContext implements CollisionContext { | ||
|
@@ -4089,7 +4089,7 @@ index 1132658b063c6cd3feb1783ab4d5f5141ab75140..284c76ddb9724b44bb2e93f590685c72 | |
|
||
@Override | ||
public boolean isAbove(VoxelShape shape, BlockPos pos, boolean defaultValue) { | ||
- return this.entityBottom > pos.getY() + shape.max(Direction.Axis.Y) - 1.0E-5F; | ||
- return this.entityBottom > (double)pos.getY() + shape.max(Direction.Axis.Y) - 1.0E-5F; | ||
+ return (this.entity == null ? -Double.MAX_VALUE : entity.getY()) > (double)pos.getY() + shape.max(Direction.Axis.Y) - 1.0E-5F; // Pufferfish | ||
} | ||
|
||
|