This repository has been archived by the owner on Apr 21, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated Upstream (Paper & Pufferfish & Purpur)
- Loading branch information
Showing
10 changed files
with
154 additions
and
174 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
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,6 +1,6 @@ | ||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 | ||
From: AlphaKR93 <[email protected]> | ||
Date: Sat, 15 Oct 2022 18:52:46 +0000 | ||
Date: Mon, 24 Oct 2022 16:02:38 +0900 | ||
Subject: [PATCH] Pufferfish API Changes | ||
|
||
Original by Kevin Raneri <[email protected]> | ||
|
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,11 +1,9 @@ | ||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 | ||
From: AlphaKR93 <[email protected]> | ||
Date: Sat, 15 Oct 2022 18:54:33 +0000 | ||
Date: Mon, 24 Oct 2022 16:15:19 +0900 | ||
Subject: [PATCH] Purpur API Changes | ||
|
||
Original by PurpurMC Team | ||
|
||
Copyright (C) 2022 PurpurMC LLC | ||
Copyright 2022 PurpurMC LLC | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the Software), to deal | ||
|
@@ -17,7 +15,12 @@ furnished to do so, subject to the following conditions: | |
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED AS | ||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS | ||
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR | ||
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER | ||
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN | ||
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
|
||
diff --git a/build.gradle.kts b/build.gradle.kts | ||
index 780c9b40f69c247592c1fe469c05fd12e984b633..8e64ccdb928bc38cb703e60c8ec31339a6f6d894 100644 | ||
|
@@ -1172,12 +1175,12 @@ index d0bef15785493b512ff0f7414c1d58d38fead581..fd213c026fdfb3030d0c37f651a88857 | |
+ // Purpur end | ||
} | ||
diff --git a/src/main/java/org/bukkit/entity/LivingEntity.java b/src/main/java/org/bukkit/entity/LivingEntity.java | ||
index 319e4571aca24d1e3f6c85b7435d65c0e77a5245..510d72bb5805ae14715282d21d790d251be21dd2 100644 | ||
index 3bd1d100d0c481ae7edaa251869640ab370aeb42..c730b7e091b897fac7faa2d756b90ea5f0cef44d 100644 | ||
--- a/src/main/java/org/bukkit/entity/LivingEntity.java | ||
+++ b/src/main/java/org/bukkit/entity/LivingEntity.java | ||
@@ -1004,4 +1004,41 @@ public interface LivingEntity extends Attributable, Damageable, ProjectileSource | ||
} | ||
} | ||
@@ -1016,4 +1016,41 @@ public interface LivingEntity extends Attributable, Damageable, ProjectileSource | ||
*/ | ||
void knockback(double strength, double directionX, double directionZ); | ||
// Paper end | ||
+ | ||
+ // Purpur start | ||
|
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,6 +1,6 @@ | ||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 | ||
From: AlphaKR93 <[email protected]> | ||
Date: Sat, 15 Oct 2022 18:52:46 +0000 | ||
Date: Mon, 24 Oct 2022 16:03:04 +0900 | ||
Subject: [PATCH] Pufferfish Server Changes | ||
|
||
Original by Kevin Raneri <[email protected]> | ||
|
@@ -2143,7 +2143,7 @@ index 0000000000000000000000000000000000000000..facd55463d44cb7e3d2ca6892982f549 | |
+ } | ||
+} | ||
diff --git a/src/main/java/io/papermc/paper/configuration/GlobalConfiguration.java b/src/main/java/io/papermc/paper/configuration/GlobalConfiguration.java | ||
index 4a8286c78a9a5e305b19cc5d316bc73a78e49b4d..54bca103347e89f116fb7fbf37449a32ac094286 100644 | ||
index 63ec2ebb71aa0e0dbb64bbce7cd3c9494e9ce2e7..d03551e81e3ef37935cb1d963aba3df316f48ef5 100644 | ||
--- a/src/main/java/io/papermc/paper/configuration/GlobalConfiguration.java | ||
+++ b/src/main/java/io/papermc/paper/configuration/GlobalConfiguration.java | ||
@@ -7,6 +7,7 @@ import net.kyori.adventure.text.Component; | ||
|
@@ -2186,7 +2186,7 @@ index 4a8286c78a9a5e305b19cc5d316bc73a78e49b4d..54bca103347e89f116fb7fbf37449a32 | |
} | ||
} | ||
diff --git a/src/main/java/net/minecraft/server/MCUtil.java b/src/main/java/net/minecraft/server/MCUtil.java | ||
index 99f56658c70f99592fb40c9df0ce3e47053d1bd5..07b0b0993c01763b39d1c9a387447ec76b5de190 100644 | ||
index 13082cd8de1a79a3b2fac6055bdaa163dbc7897b..0d995a13114e718016518f41d7fcff3042674847 100644 | ||
--- a/src/main/java/net/minecraft/server/MCUtil.java | ||
+++ b/src/main/java/net/minecraft/server/MCUtil.java | ||
@@ -208,7 +208,7 @@ public final class MCUtil { | ||
|
@@ -2250,7 +2250,7 @@ index 2932d2bb797a49e904cebec4285d24d69b429cd9..d4efadbc87ee0b6cb8564c57fc9dcbb4 | |
} | ||
} | ||
diff --git a/src/main/java/net/minecraft/server/level/ChunkMap.java b/src/main/java/net/minecraft/server/level/ChunkMap.java | ||
index 73daa8368066e20d251b8b6eb69c916919b48838..ae68af5f3498325e5686eb311faad559647bb348 100644 | ||
index 971405224418fee037030a4c465b5f4bb9cd2c3b..9ce60dd72dee4d3ceef38f425b13aed18fd5e002 100644 | ||
--- a/src/main/java/net/minecraft/server/level/ChunkMap.java | ||
+++ b/src/main/java/net/minecraft/server/level/ChunkMap.java | ||
@@ -334,7 +334,7 @@ public class ChunkMap extends ChunkStorage implements ChunkHolder.PlayerProvider | ||
|
@@ -2262,7 +2262,7 @@ index 73daa8368066e20d251b8b6eb69c916919b48838..ae68af5f3498325e5686eb311faad559 | |
// Paper start - use distance map to optimise entity tracker | ||
this.playerEntityTrackerTrackMaps = new com.destroystokyo.paper.util.misc.PlayerAreaMap[TRACKING_RANGE_TYPES.length]; | ||
this.entityTrackerTrackRanges = new int[TRACKING_RANGE_TYPES.length]; | ||
@@ -1590,8 +1590,28 @@ public class ChunkMap extends ChunkStorage implements ChunkHolder.PlayerProvider | ||
@@ -1589,8 +1589,28 @@ public class ChunkMap extends ChunkStorage implements ChunkHolder.PlayerProvider | ||
return ChunkMap.this.level.getServer().getScaledTrackingDistance(initialDistance); | ||
} | ||
|
||
|
@@ -2291,7 +2291,7 @@ index 73daa8368066e20d251b8b6eb69c916919b48838..ae68af5f3498325e5686eb311faad559 | |
Iterator iterator = this.entity.getIndirectPassengers().iterator(); | ||
|
||
while (iterator.hasNext()) { | ||
@@ -1603,6 +1623,9 @@ public class ChunkMap extends ChunkStorage implements ChunkHolder.PlayerProvider | ||
@@ -1602,6 +1622,9 @@ public class ChunkMap extends ChunkStorage implements ChunkHolder.PlayerProvider | ||
i = j; | ||
} | ||
} | ||
|
@@ -2418,10 +2418,10 @@ index 3b144c820531122eb37d41be06c182b5f5dc0724..1eb912ad97f9663bf6bd336ad739f255 | |
this.wasOnGround = this.entity.isOnGround(); | ||
this.teleportDelay = 0; | ||
diff --git a/src/main/java/net/minecraft/server/level/ServerLevel.java b/src/main/java/net/minecraft/server/level/ServerLevel.java | ||
index f1a27e0ea0569438032ff6c5a777a35be4e501ef..917cf327f3f9d824ec0da70fd9204624e7cf96fb 100644 | ||
index f1a1c58fd70610c7fe29d5890cdf161346f34cb9..e802ee2b2dc458f52dbce9746fc9891eebb6dcc1 100644 | ||
--- a/src/main/java/net/minecraft/server/level/ServerLevel.java | ||
+++ b/src/main/java/net/minecraft/server/level/ServerLevel.java | ||
@@ -725,7 +725,20 @@ public class ServerLevel extends Level implements WorldGenLevel { | ||
@@ -727,7 +727,20 @@ public class ServerLevel extends Level implements WorldGenLevel { | ||
} | ||
|
||
gameprofilerfiller.push("tick"); | ||
|
@@ -2443,7 +2443,7 @@ index f1a27e0ea0569438032ff6c5a777a35be4e501ef..917cf327f3f9d824ec0da70fd9204624 | |
gameprofilerfiller.pop(); | ||
} | ||
} | ||
@@ -792,9 +805,11 @@ public class ServerLevel extends Level implements WorldGenLevel { | ||
@@ -794,9 +807,11 @@ public class ServerLevel extends Level implements WorldGenLevel { | ||
} | ||
// Paper start - optimise random block ticking | ||
private final BlockPos.MutableBlockPos chunkTickMutablePosition = new BlockPos.MutableBlockPos(); | ||
|
@@ -2456,7 +2456,7 @@ index f1a27e0ea0569438032ff6c5a777a35be4e501ef..917cf327f3f9d824ec0da70fd9204624 | |
public void tickChunk(LevelChunk chunk, int randomTickSpeed) { | ||
ChunkPos chunkcoordintpair = chunk.getPos(); | ||
boolean flag = this.isRaining(); | ||
@@ -805,7 +820,7 @@ public class ServerLevel extends Level implements WorldGenLevel { | ||
@@ -807,7 +822,7 @@ public class ServerLevel extends Level implements WorldGenLevel { | ||
gameprofilerfiller.push("thunder"); | ||
final BlockPos.MutableBlockPos blockposition = this.chunkTickMutablePosition; // Paper - use mutable to reduce allocation rate, final to force compile fail on change | ||
|
||
|
@@ -2465,7 +2465,7 @@ index f1a27e0ea0569438032ff6c5a777a35be4e501ef..917cf327f3f9d824ec0da70fd9204624 | |
blockposition.set(this.findLightningTargetAround(this.getBlockRandomPos(j, 0, k, 15))); // Paper | ||
if (this.isRainingAt(blockposition)) { | ||
DifficultyInstance difficultydamagescaler = this.getCurrentDifficultyAt(blockposition); | ||
@@ -829,7 +844,7 @@ public class ServerLevel extends Level implements WorldGenLevel { | ||
@@ -831,7 +846,7 @@ public class ServerLevel extends Level implements WorldGenLevel { | ||
} | ||
|
||
gameprofilerfiller.popPush("iceandsnow"); | ||
|
@@ -2475,7 +2475,7 @@ index f1a27e0ea0569438032ff6c5a777a35be4e501ef..917cf327f3f9d824ec0da70fd9204624 | |
this.getRandomBlockPosition(j, 0, k, 15, blockposition); | ||
int normalY = chunk.getHeight(Heightmap.Types.MOTION_BLOCKING, blockposition.getX() & 15, blockposition.getZ() & 15) + 1; | ||
diff --git a/src/main/java/net/minecraft/server/network/ServerGamePacketListenerImpl.java b/src/main/java/net/minecraft/server/network/ServerGamePacketListenerImpl.java | ||
index 63c9040ed2349eec500ba6e9090440347c514a3b..59608a53bbf0eccf118b4d65557444f6532fedb4 100644 | ||
index 9ad36447e82a3504576f6c10cb297514a2f69289..4e615e5d5b8d79f6eaac2136be03961415fd093e 100644 | ||
--- a/src/main/java/net/minecraft/server/network/ServerGamePacketListenerImpl.java | ||
+++ b/src/main/java/net/minecraft/server/network/ServerGamePacketListenerImpl.java | ||
@@ -1216,6 +1216,7 @@ public class ServerGamePacketListenerImpl implements ServerPlayerConnection, Tic | ||
|
@@ -3071,7 +3071,7 @@ index def01d221f36d71640bf4ef982a984909aacc6da..bfea05018d9515fa7a9a8c04d4e2a63e | |
@Override | ||
protected float getStandingEyeHeight(Pose pose, EntityDimensions dimensions) { | ||
diff --git a/src/main/java/net/minecraft/world/entity/animal/allay/Allay.java b/src/main/java/net/minecraft/world/entity/animal/allay/Allay.java | ||
index 2d87b740e84435ef9bd3eee3d3e2af9f707a0826..d38d1e3692e093d6707b6bd80cd56ec4afcf093b 100644 | ||
index 1dcd0c494681b7665b6b86dbe20375afd8d2fad8..f889b352d5618c1955e21273da79604a33e30c06 100644 | ||
--- a/src/main/java/net/minecraft/world/entity/animal/allay/Allay.java | ||
+++ b/src/main/java/net/minecraft/world/entity/animal/allay/Allay.java | ||
@@ -228,9 +228,11 @@ public class Allay extends PathfinderMob implements InventoryCarrier { | ||
|
@@ -3960,7 +3960,7 @@ index d559f93a9a09bac414dd5d58afccad42c127f09b..13e749a3c40f0b2cc002f13675a9a56e | |
|
||
@Override | ||
diff --git a/src/main/java/net/minecraft/world/level/chunk/LevelChunk.java b/src/main/java/net/minecraft/world/level/chunk/LevelChunk.java | ||
index 05499ae9fc331471db6e763a2adb46b5da8522d3..34334c139176e0aa9f6d93a87821508d17567cfc 100644 | ||
index 258d00692fa50e0932747a7a2f0ddae5ab659040..f5adadb2e29ed8b52a502489ba06df4551cd06dc 100644 | ||
--- a/src/main/java/net/minecraft/world/level/chunk/LevelChunk.java | ||
+++ b/src/main/java/net/minecraft/world/level/chunk/LevelChunk.java | ||
@@ -88,6 +88,18 @@ public class LevelChunk extends ChunkAccess { | ||
|
Oops, something went wrong.