Update Folia
This commit is contained in:
+1
-1
@@ -9,7 +9,7 @@ release=true
|
|||||||
# true for push to repo, false for skip push repo, auto for detect by release value
|
# true for push to repo, false for skip push repo, auto for detect by release value
|
||||||
pushRepo=auto
|
pushRepo=auto
|
||||||
|
|
||||||
foliaRef=57f643f10e0a9d01024773232d38ae666067d593
|
foliaRef=24c5c95dc45e02caff98a97ed6ffee7565523464
|
||||||
|
|
||||||
org.gradle.configuration-cache=true
|
org.gradle.configuration-cache=true
|
||||||
org.gradle.caching=true
|
org.gradle.caching=true
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
--- a/folia-api/build.gradle.kts
|
--- a/folia-api/build.gradle.kts
|
||||||
+++ b/folia-api/build.gradle.kts
|
+++ b/folia-api/build.gradle.kts
|
||||||
@@ -53,6 +_,7 @@
|
@@ -68,6 +_,7 @@
|
||||||
api("org.apache.logging.log4j:log4j-api:$log4jVersion")
|
api("org.apache.logging.log4j:log4j-api:$log4jVersion")
|
||||||
api("org.slf4j:slf4j-api:$slf4jVersion")
|
api("org.slf4j:slf4j-api:$slf4jVersion")
|
||||||
api("com.mojang:brigadier:1.3.10")
|
api("com.mojang:brigadier:1.3.10")
|
||||||
@@ -8,7 +8,16 @@
|
|||||||
|
|
||||||
// Deprecate bungeecord-chat in favor of adventure
|
// Deprecate bungeecord-chat in favor of adventure
|
||||||
api("net.md-5:bungeecord-chat:$bungeeCordChatVersion") {
|
api("net.md-5:bungeecord-chat:$bungeeCordChatVersion") {
|
||||||
@@ -105,17 +_,21 @@
|
@@ -109,7 +_,7 @@
|
||||||
|
testRuntimeOnly("org.junit.platform:junit-platform-launcher:6.0.3")
|
||||||
|
|
||||||
|
// checkstyle
|
||||||
|
- checkstyle(project(":folia-checkstyle"))
|
||||||
|
+ //checkstyle(project(":folia-checkstyle"))
|
||||||
|
}
|
||||||
|
|
||||||
|
val generatedDir: java.nio.file.Path = rootProject.layout.projectDirectory.dir("paper-api/src/generated/java").asFile.toPath()
|
||||||
|
@@ -123,17 +_,21 @@
|
||||||
java {
|
java {
|
||||||
srcDir(generatedDir)
|
srcDir(generatedDir)
|
||||||
srcDir(file("../paper-api/src/main/java"))
|
srcDir(file("../paper-api/src/main/java"))
|
||||||
@@ -30,7 +39,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -259,3 +_,19 @@
|
@@ -277,3 +_,19 @@
|
||||||
tasks.check {
|
tasks.check {
|
||||||
dependsOn(scanJarForBadCalls)
|
dependsOn(scanJarForBadCalls)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,10 +5,10 @@ Subject: [PATCH] Rebrand to Lophine
|
|||||||
|
|
||||||
|
|
||||||
diff --git a/src/main/java/io/papermc/paper/ServerBuildInfo.java b/src/main/java/io/papermc/paper/ServerBuildInfo.java
|
diff --git a/src/main/java/io/papermc/paper/ServerBuildInfo.java b/src/main/java/io/papermc/paper/ServerBuildInfo.java
|
||||||
index 56a5877181e8d37518b178c95155e892c442e96d..ebe0290bf0235af2ba353ac1f74b29080daebba4 100644
|
index 4e099b584c3435ba1ebce492011d35ae1ac0cdf8..ed558bea1f939ab902d3c45417573fba83307abc 100644
|
||||||
--- a/src/main/java/io/papermc/paper/ServerBuildInfo.java
|
--- a/src/main/java/io/papermc/paper/ServerBuildInfo.java
|
||||||
+++ b/src/main/java/io/papermc/paper/ServerBuildInfo.java
|
+++ b/src/main/java/io/papermc/paper/ServerBuildInfo.java
|
||||||
@@ -19,6 +19,17 @@ public interface ServerBuildInfo {
|
@@ -17,6 +17,17 @@ public interface ServerBuildInfo {
|
||||||
*/
|
*/
|
||||||
Key BRAND_PAPER_ID = Key.key("papermc", "paper");
|
Key BRAND_PAPER_ID = Key.key("papermc", "paper");
|
||||||
|
|
||||||
|
|||||||
@@ -64,7 +64,7 @@
|
|||||||
|
|
||||||
@@ -103,10 +_,14 @@
|
@@ -103,10 +_,14 @@
|
||||||
main {
|
main {
|
||||||
java { srcDir("../paper-server/src/main/java"); srcDir("../paper-server/src/generated/java") }
|
java { srcDir("../paper-server/src/main/java") }
|
||||||
resources { srcDir("../paper-server/src/main/resources") }
|
resources { srcDir("../paper-server/src/main/resources") }
|
||||||
+ java { srcDir("../folia-server/src/main/java") }
|
+ java { srcDir("../folia-server/src/main/java") }
|
||||||
+ resources { srcDir("../folia-server/src/main/resources") }
|
+ resources { srcDir("../folia-server/src/main/resources") }
|
||||||
|
|||||||
@@ -0,0 +1,19 @@
|
|||||||
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Helvetica Volubi <suisuroru@blue-millennium.fun>
|
||||||
|
Date: Wed, 12 Aug 2026 03:44:13 +0800
|
||||||
|
Subject: [PATCH] Set Lophine logo
|
||||||
|
|
||||||
|
|
||||||
|
diff --git a/net/minecraft/server/gui/MinecraftServerGui.java b/net/minecraft/server/gui/MinecraftServerGui.java
|
||||||
|
index 79518cbca7760f710130509d93d27fb017d67159..05d17e35803adacb6efb594ad90d6254f4a1b09c 100644
|
||||||
|
--- a/net/minecraft/server/gui/MinecraftServerGui.java
|
||||||
|
+++ b/net/minecraft/server/gui/MinecraftServerGui.java
|
||||||
|
@@ -58,7 +58,7 @@ public class MinecraftServerGui extends JComponent {
|
||||||
|
// Paper start - Improve ServerGUI
|
||||||
|
frame.setName("Minecraft server");
|
||||||
|
try {
|
||||||
|
- frame.setIconImage(javax.imageio.ImageIO.read(java.util.Objects.requireNonNull(MinecraftServerGui.class.getClassLoader().getResourceAsStream("folia-logo.png"))));
|
||||||
|
+ frame.setIconImage(javax.imageio.ImageIO.read(java.util.Objects.requireNonNull(MinecraftServerGui.class.getClassLoader().getResourceAsStream("lophine-logo.png"))));
|
||||||
|
} catch (java.io.IOException ignore) {
|
||||||
|
}
|
||||||
|
// Paper end - Improve ServerGUI
|
||||||
+3
-3
@@ -19,10 +19,10 @@ index 216c9263999f05c36fb4c5598b41ff70e5759f5e..6c2196726a0669bddda456a089aeec0d
|
|||||||
int distance = Math.round((float)Math.sqrt(dx * dx + dy * dy + dz * dz) * 100.0F);
|
int distance = Math.round((float)Math.sqrt(dx * dx + dy * dy + dz * dz) * 100.0F);
|
||||||
Entity vehicle = this.getVehicle();
|
Entity vehicle = this.getVehicle();
|
||||||
diff --git a/net/minecraft/world/entity/Entity.java b/net/minecraft/world/entity/Entity.java
|
diff --git a/net/minecraft/world/entity/Entity.java b/net/minecraft/world/entity/Entity.java
|
||||||
index 18b9e630442fd31a14e131bb9043be46e10881e3..b475a8fe259848749ee05ff6cf10e46f52f955d3 100644
|
index 75dabd3e7b6077b5ae8ee30048786442742b93f9..6fa3ac9a37dafa166d8e70aaf4ec369db0792200 100644
|
||||||
--- a/net/minecraft/world/entity/Entity.java
|
--- a/net/minecraft/world/entity/Entity.java
|
||||||
+++ b/net/minecraft/world/entity/Entity.java
|
+++ b/net/minecraft/world/entity/Entity.java
|
||||||
@@ -4194,7 +4194,13 @@ public abstract class Entity
|
@@ -4200,7 +4200,13 @@ public abstract class Entity
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -36,7 +36,7 @@ index 18b9e630442fd31a14e131bb9043be46e10881e3..b475a8fe259848749ee05ff6cf10e46f
|
|||||||
java.util.ArrayDeque<EntityTreeNode> queue = new java.util.ArrayDeque<>();
|
java.util.ArrayDeque<EntityTreeNode> queue = new java.util.ArrayDeque<>();
|
||||||
queue.add(this);
|
queue.add(this);
|
||||||
|
|
||||||
@@ -4207,14 +4213,24 @@ public abstract class Entity
|
@@ -4213,14 +4219,24 @@ public abstract class Entity
|
||||||
|
|
||||||
for (EntityTreeNode passenger : passengers) {
|
for (EntityTreeNode passenger : passengers) {
|
||||||
queue.add(passenger);
|
queue.add(passenger);
|
||||||
+3
-3
@@ -46,10 +46,10 @@ index 35ab432bbd59aba80a6eaca1769e6aa82c8a7e46..6950fa2462353f30ee02e1d0091cfcf2
|
|||||||
} else {entity.inactiveTick();} // Paper - EAR 2
|
} else {entity.inactiveTick();} // Paper - EAR 2
|
||||||
profiler.pop();
|
profiler.pop();
|
||||||
diff --git a/net/minecraft/world/entity/Entity.java b/net/minecraft/world/entity/Entity.java
|
diff --git a/net/minecraft/world/entity/Entity.java b/net/minecraft/world/entity/Entity.java
|
||||||
index b475a8fe259848749ee05ff6cf10e46f52f955d3..5e7cf38d241591715fec9ec008d3ac87bbaef662 100644
|
index 6fa3ac9a37dafa166d8e70aaf4ec369db0792200..bb02a5d2e752c7a3f0aba9ff115f3df61b9e141a 100644
|
||||||
--- a/net/minecraft/world/entity/Entity.java
|
--- a/net/minecraft/world/entity/Entity.java
|
||||||
+++ b/net/minecraft/world/entity/Entity.java
|
+++ b/net/minecraft/world/entity/Entity.java
|
||||||
@@ -387,6 +387,7 @@ public abstract class Entity
|
@@ -388,6 +388,7 @@ public abstract class Entity
|
||||||
public long activatedTick = Integer.MIN_VALUE;
|
public long activatedTick = Integer.MIN_VALUE;
|
||||||
public boolean isTemporarilyActive;
|
public boolean isTemporarilyActive;
|
||||||
public long activatedImmunityTick = Integer.MIN_VALUE;
|
public long activatedImmunityTick = Integer.MIN_VALUE;
|
||||||
@@ -57,7 +57,7 @@ index b475a8fe259848749ee05ff6cf10e46f52f955d3..5e7cf38d241591715fec9ec008d3ac87
|
|||||||
|
|
||||||
public void inactiveTick() {
|
public void inactiveTick() {
|
||||||
}
|
}
|
||||||
@@ -3591,6 +3592,7 @@ public abstract class Entity
|
@@ -3597,6 +3598,7 @@ public abstract class Entity
|
||||||
} else {
|
} else {
|
||||||
if (this.portalProcess == null || !this.portalProcess.isSamePortal(portal)) {
|
if (this.portalProcess == null || !this.portalProcess.isSamePortal(portal)) {
|
||||||
this.portalProcess = new PortalProcessor(portal, pos.immutable());
|
this.portalProcess = new PortalProcessor(portal, pos.immutable());
|
||||||
+3
-3
@@ -29,10 +29,10 @@ index c86b1fd5e200c478d178be32791b6e8c960d47e2..9be6d486082d344fb91fd74207eee83c
|
|||||||
// If the event is cancelled we move the player back to their old location.
|
// If the event is cancelled we move the player back to their old location.
|
||||||
if (event.isCancelled()) {
|
if (event.isCancelled()) {
|
||||||
diff --git a/net/minecraft/world/entity/Entity.java b/net/minecraft/world/entity/Entity.java
|
diff --git a/net/minecraft/world/entity/Entity.java b/net/minecraft/world/entity/Entity.java
|
||||||
index 5e7cf38d241591715fec9ec008d3ac87bbaef662..51dacbe395c85aba9b81831e511a413b303ca675 100644
|
index bb02a5d2e752c7a3f0aba9ff115f3df61b9e141a..33b6f6c0316af44e47370a55e3515df4e3b706b6 100644
|
||||||
--- a/net/minecraft/world/entity/Entity.java
|
--- a/net/minecraft/world/entity/Entity.java
|
||||||
+++ b/net/minecraft/world/entity/Entity.java
|
+++ b/net/minecraft/world/entity/Entity.java
|
||||||
@@ -4472,12 +4472,25 @@ public abstract class Entity
|
@@ -4478,12 +4478,25 @@ public abstract class Entity
|
||||||
teleportTarget.cause(), teleportFlags, teleportComplete
|
teleportTarget.cause(), teleportFlags, teleportComplete
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@@ -73,7 +73,7 @@ index 3fcd534cee1f605a710ffc43eff4b5106c7dd40c..9b887b40236a212de513e3ceece1abfe
|
|||||||
this.lastLocation = vehicle.getLocation();
|
this.lastLocation = vehicle.getLocation();
|
||||||
// CraftBukkit end
|
// CraftBukkit end
|
||||||
diff --git a/net/minecraft/world/entity/vehicle/minecart/AbstractMinecart.java b/net/minecraft/world/entity/vehicle/minecart/AbstractMinecart.java
|
diff --git a/net/minecraft/world/entity/vehicle/minecart/AbstractMinecart.java b/net/minecraft/world/entity/vehicle/minecart/AbstractMinecart.java
|
||||||
index 5ad77636d0681d1f0341cff4482ba6ad52f3583b..0ae8b5222c5f2f608af352cbaa866c493dd065aa 100644
|
index 30b99d9d0944399e6f3a74c4310cbf8f15cc5adc..9a414d8a1a2e95f2843d8f6e65cf5ad0b742bb26 100644
|
||||||
--- a/net/minecraft/world/entity/vehicle/minecart/AbstractMinecart.java
|
--- a/net/minecraft/world/entity/vehicle/minecart/AbstractMinecart.java
|
||||||
+++ b/net/minecraft/world/entity/vehicle/minecart/AbstractMinecart.java
|
+++ b/net/minecraft/world/entity/vehicle/minecart/AbstractMinecart.java
|
||||||
@@ -318,7 +318,9 @@ public abstract class AbstractMinecart extends VehicleEntity {
|
@@ -318,7 +318,9 @@ public abstract class AbstractMinecart extends VehicleEntity {
|
||||||
+2
-2
@@ -17,10 +17,10 @@ index aa53138b3670a8337b639472a6ab5ce46702ff76..ed27b73e787782f328906b2a061feeca
|
|||||||
}
|
}
|
||||||
|
|
||||||
diff --git a/net/minecraft/world/entity/Entity.java b/net/minecraft/world/entity/Entity.java
|
diff --git a/net/minecraft/world/entity/Entity.java b/net/minecraft/world/entity/Entity.java
|
||||||
index 51dacbe395c85aba9b81831e511a413b303ca675..e2e1b101de8afbec7d853593c527e35111c94319 100644
|
index 33b6f6c0316af44e47370a55e3515df4e3b706b6..8585068ce8a01b9fb90135f7bf3b35bb1647396a 100644
|
||||||
--- a/net/minecraft/world/entity/Entity.java
|
--- a/net/minecraft/world/entity/Entity.java
|
||||||
+++ b/net/minecraft/world/entity/Entity.java
|
+++ b/net/minecraft/world/entity/Entity.java
|
||||||
@@ -4456,6 +4456,7 @@ public abstract class Entity
|
@@ -4462,6 +4462,7 @@ public abstract class Entity
|
||||||
Entity copy = this.getType().create(destination, EntitySpawnReason.DIMENSION_TRAVEL);
|
Entity copy = this.getType().create(destination, EntitySpawnReason.DIMENSION_TRAVEL);
|
||||||
copy.restoreFrom(this);
|
copy.restoreFrom(this);
|
||||||
copy.transform(pos, yaw, pitch, velocity);
|
copy.transform(pos, yaw, pitch, velocity);
|
||||||
+2
-2
@@ -8,10 +8,10 @@ On folia, entity usually cannot move out of the tickregion, but sometimes it act
|
|||||||
Reference from : https://github.com/KaiijuMC/Kaiiju/blob/ver/1.20.1/patches/server/0040-Teleport-async-if-we-cannot-move-entity-off-main.patch
|
Reference from : https://github.com/KaiijuMC/Kaiiju/blob/ver/1.20.1/patches/server/0040-Teleport-async-if-we-cannot-move-entity-off-main.patch
|
||||||
|
|
||||||
diff --git a/net/minecraft/world/entity/Entity.java b/net/minecraft/world/entity/Entity.java
|
diff --git a/net/minecraft/world/entity/Entity.java b/net/minecraft/world/entity/Entity.java
|
||||||
index e2e1b101de8afbec7d853593c527e35111c94319..33c9692a59c58c44a77b1077553e2bda88cb8305 100644
|
index 8585068ce8a01b9fb90135f7bf3b35bb1647396a..3ea74b0ee3527c109b3491a5fa3b5bdd26214292 100644
|
||||||
--- a/net/minecraft/world/entity/Entity.java
|
--- a/net/minecraft/world/entity/Entity.java
|
||||||
+++ b/net/minecraft/world/entity/Entity.java
|
+++ b/net/minecraft/world/entity/Entity.java
|
||||||
@@ -1163,6 +1163,19 @@ public abstract class Entity
|
@@ -1164,6 +1164,19 @@ public abstract class Entity
|
||||||
this.moveStartZ = this.getZ();
|
this.moveStartZ = this.getZ();
|
||||||
this.moveVector = delta;
|
this.moveVector = delta;
|
||||||
}
|
}
|
||||||
+8
-8
@@ -429,10 +429,10 @@ index 9fad06eda81b4c2c1889a9cfa7a6948e7ee01862..854f8954ccfd8c34c9f9c91fd1805260
|
|||||||
private final Vec2 spawnAngle;
|
private final Vec2 spawnAngle;
|
||||||
|
|
||||||
diff --git a/net/minecraft/world/entity/Entity.java b/net/minecraft/world/entity/Entity.java
|
diff --git a/net/minecraft/world/entity/Entity.java b/net/minecraft/world/entity/Entity.java
|
||||||
index 33c9692a59c58c44a77b1077553e2bda88cb8305..e8047a06a2df17fde9965508c1ebcf1fc4d25989 100644
|
index 3ea74b0ee3527c109b3491a5fa3b5bdd26214292..ccbd1760c66c86971cec7a89442a647267f4a2f6 100644
|
||||||
--- a/net/minecraft/world/entity/Entity.java
|
--- a/net/minecraft/world/entity/Entity.java
|
||||||
+++ b/net/minecraft/world/entity/Entity.java
|
+++ b/net/minecraft/world/entity/Entity.java
|
||||||
@@ -392,6 +392,9 @@ public abstract class Entity
|
@@ -393,6 +393,9 @@ public abstract class Entity
|
||||||
public void inactiveTick() {
|
public void inactiveTick() {
|
||||||
}
|
}
|
||||||
// Paper end - EAR 2
|
// Paper end - EAR 2
|
||||||
@@ -442,7 +442,7 @@ index 33c9692a59c58c44a77b1077553e2bda88cb8305..e8047a06a2df17fde9965508c1ebcf1f
|
|||||||
// CraftBukkit end
|
// CraftBukkit end
|
||||||
|
|
||||||
// Paper start
|
// Paper start
|
||||||
@@ -4534,6 +4537,17 @@ public abstract class Entity
|
@@ -4540,6 +4543,17 @@ public abstract class Entity
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -460,7 +460,7 @@ index 33c9692a59c58c44a77b1077553e2bda88cb8305..e8047a06a2df17fde9965508c1ebcf1f
|
|||||||
// TODO any events that can modify go HERE
|
// TODO any events that can modify go HERE
|
||||||
|
|
||||||
// check for same region
|
// check for same region
|
||||||
@@ -4552,6 +4566,14 @@ public abstract class Entity
|
@@ -4558,6 +4572,14 @@ public abstract class Entity
|
||||||
}
|
}
|
||||||
|
|
||||||
for (EntityTreeNode entity : passengerTree.getFullTree()) {
|
for (EntityTreeNode entity : passengerTree.getFullTree()) {
|
||||||
@@ -475,7 +475,7 @@ index 33c9692a59c58c44a77b1077553e2bda88cb8305..e8047a06a2df17fde9965508c1ebcf1f
|
|||||||
entity.root.teleportSyncSameRegion(pos, yaw, pitch, velocity);
|
entity.root.teleportSyncSameRegion(pos, yaw, pitch, velocity);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -4567,8 +4589,8 @@ public abstract class Entity
|
@@ -4573,8 +4595,8 @@ public abstract class Entity
|
||||||
// performs add/remove from world logic which will also perform add/remove tracker logic
|
// performs add/remove from world logic which will also perform add/remove tracker logic
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -486,7 +486,7 @@ index 33c9692a59c58c44a77b1077553e2bda88cb8305..e8047a06a2df17fde9965508c1ebcf1f
|
|||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@@ -4585,7 +4607,7 @@ public abstract class Entity
|
@@ -4591,7 +4613,7 @@ public abstract class Entity
|
||||||
node.root = node.root.transformForAsyncTeleport(destination, pos, yaw, pitch, velocity);
|
node.root = node.root.transformForAsyncTeleport(destination, pos, yaw, pitch, velocity);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -495,7 +495,7 @@ index 33c9692a59c58c44a77b1077553e2bda88cb8305..e8047a06a2df17fde9965508c1ebcf1f
|
|||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@@ -4864,6 +4886,13 @@ public abstract class Entity
|
@@ -4870,6 +4892,13 @@ public abstract class Entity
|
||||||
ca.spottedleaf.moonrise.common.util.CoordinateUtils.getChunkX(initialPosition),
|
ca.spottedleaf.moonrise.common.util.CoordinateUtils.getChunkX(initialPosition),
|
||||||
ca.spottedleaf.moonrise.common.util.CoordinateUtils.getChunkZ(initialPosition)
|
ca.spottedleaf.moonrise.common.util.CoordinateUtils.getChunkZ(initialPosition)
|
||||||
);
|
);
|
||||||
@@ -509,7 +509,7 @@ index 33c9692a59c58c44a77b1077553e2bda88cb8305..e8047a06a2df17fde9965508c1ebcf1f
|
|||||||
|
|
||||||
// first, remove entity/passengers from world
|
// first, remove entity/passengers from world
|
||||||
EntityTreeNode passengerTree = this.detachPassengers();
|
EntityTreeNode passengerTree = this.detachPassengers();
|
||||||
@@ -4921,6 +4950,10 @@ public abstract class Entity
|
@@ -4927,6 +4956,10 @@ public abstract class Entity
|
||||||
if (info.postTeleportTransition() != null) {
|
if (info.postTeleportTransition() != null) {
|
||||||
info.postTeleportTransition().onTransition(teleported);
|
info.postTeleportTransition().onTransition(teleported);
|
||||||
}
|
}
|
||||||
+5
-5
@@ -8,10 +8,10 @@ As part of: Kaiiju (https://github.com/KaiijuMC/Kaiiju/blob/c2b7aec8f7b418a39a2e
|
|||||||
Licensed under: GPL-3.0 (https://github.com/KaiijuMC/Kaiiju/blob/c2b7aec8f7b418a39a2ec408e6411e6f752379da/LICENSE)
|
Licensed under: GPL-3.0 (https://github.com/KaiijuMC/Kaiiju/blob/c2b7aec8f7b418a39a2ec408e6411e6f752379da/LICENSE)
|
||||||
|
|
||||||
diff --git a/net/minecraft/world/entity/Entity.java b/net/minecraft/world/entity/Entity.java
|
diff --git a/net/minecraft/world/entity/Entity.java b/net/minecraft/world/entity/Entity.java
|
||||||
index e8047a06a2df17fde9965508c1ebcf1fc4d25989..3b98ef4310d9f996437af9f12ab3de2cf6f4dd63 100644
|
index ccbd1760c66c86971cec7a89442a647267f4a2f6..58c65c3b1d425c6566313ba34588d9d16f66c52d 100644
|
||||||
--- a/net/minecraft/world/entity/Entity.java
|
--- a/net/minecraft/world/entity/Entity.java
|
||||||
+++ b/net/minecraft/world/entity/Entity.java
|
+++ b/net/minecraft/world/entity/Entity.java
|
||||||
@@ -4672,15 +4672,19 @@ public abstract class Entity
|
@@ -4678,15 +4678,19 @@ public abstract class Entity
|
||||||
targetPos, 16, // load 16 blocks to be safe from block physics
|
targetPos, 16, // load 16 blocks to be safe from block physics
|
||||||
ca.spottedleaf.concurrentutil.util.Priority.HIGH,
|
ca.spottedleaf.concurrentutil.util.Priority.HIGH,
|
||||||
(chunks) -> {
|
(chunks) -> {
|
||||||
@@ -35,7 +35,7 @@ index e8047a06a2df17fde9965508c1ebcf1fc4d25989..3b98ef4310d9f996437af9f12ab3de2c
|
|||||||
TeleportTransition.PLAY_PORTAL_SOUND.then(TeleportTransition.PLACE_PORTAL_TICKET),
|
TeleportTransition.PLAY_PORTAL_SOUND.then(TeleportTransition.PLACE_PORTAL_TICKET),
|
||||||
org.bukkit.event.player.PlayerTeleportEvent.TeleportCause.END_PORTAL,
|
org.bukkit.event.player.PlayerTeleportEvent.TeleportCause.END_PORTAL,
|
||||||
TeleportTransition.PassengerTeleportationMode.POSITION_RIDER
|
TeleportTransition.PassengerTeleportationMode.POSITION_RIDER
|
||||||
@@ -4696,11 +4700,15 @@ public abstract class Entity
|
@@ -4702,11 +4706,15 @@ public abstract class Entity
|
||||||
ca.spottedleaf.concurrentutil.util.Priority.HIGH,
|
ca.spottedleaf.concurrentutil.util.Priority.HIGH,
|
||||||
(chunks) -> {
|
(chunks) -> {
|
||||||
BlockPos adjustedSpawn = destination.getHeightmapPos(Heightmap.Types.MOTION_BLOCKING_NO_LEAVES, spawnPos);
|
BlockPos adjustedSpawn = destination.getHeightmapPos(Heightmap.Types.MOTION_BLOCKING_NO_LEAVES, spawnPos);
|
||||||
@@ -53,7 +53,7 @@ index e8047a06a2df17fde9965508c1ebcf1fc4d25989..3b98ef4310d9f996437af9f12ab3de2c
|
|||||||
false, false,
|
false, false,
|
||||||
Relative.union(Relative.DELTA, Relative.ROTATION),
|
Relative.union(Relative.DELTA, Relative.ROTATION),
|
||||||
TeleportTransition.PLAY_PORTAL_SOUND.then(TeleportTransition.PLACE_PORTAL_TICKET),
|
TeleportTransition.PLAY_PORTAL_SOUND.then(TeleportTransition.PLACE_PORTAL_TICKET),
|
||||||
@@ -4881,6 +4889,10 @@ public abstract class Entity
|
@@ -4887,6 +4895,10 @@ public abstract class Entity
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -64,7 +64,7 @@ index e8047a06a2df17fde9965508c1ebcf1fc4d25989..3b98ef4310d9f996437af9f12ab3de2c
|
|||||||
Vec3 initialPosition = this.position();
|
Vec3 initialPosition = this.position();
|
||||||
ChunkPos initialPositionChunk = new ChunkPos(
|
ChunkPos initialPositionChunk = new ChunkPos(
|
||||||
ca.spottedleaf.moonrise.common.util.CoordinateUtils.getChunkX(initialPosition),
|
ca.spottedleaf.moonrise.common.util.CoordinateUtils.getChunkX(initialPosition),
|
||||||
@@ -4955,9 +4967,14 @@ public abstract class Entity
|
@@ -4961,9 +4973,14 @@ public abstract class Entity
|
||||||
destination.levelUnloadStateLock.releaseRead();
|
destination.levelUnloadStateLock.releaseRead();
|
||||||
// Luminol end
|
// Luminol end
|
||||||
|
|
||||||
+4
-4
@@ -5,10 +5,10 @@ Subject: [PATCH] Async protocol switching optimization
|
|||||||
|
|
||||||
|
|
||||||
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 40f54536422fa38bd84017fc634808016b4de58b..ecaa296f576c5c90fda89e0406d6552628ef5de3 100644
|
index c3922310ef1fce26eca60793b75bcb480683778a..8144de362b03ce63334765791701cec724776f42 100644
|
||||||
--- a/net/minecraft/network/Connection.java
|
--- a/net/minecraft/network/Connection.java
|
||||||
+++ b/net/minecraft/network/Connection.java
|
+++ b/net/minecraft/network/Connection.java
|
||||||
@@ -1067,4 +1067,127 @@ public class Connection extends SimpleChannelInboundHandler<Packet<?>> {
|
@@ -1108,4 +1108,127 @@ public class Connection extends SimpleChannelInboundHandler<Packet<?>> {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Paper end - Optimize network
|
// Paper end - Optimize network
|
||||||
@@ -216,10 +216,10 @@ index 9be6d486082d344fb91fd74207eee83ca2f8e869..40b409ad07eaa03473712ba83bc4ccd9
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
diff --git a/net/minecraft/server/network/ServerLoginPacketListenerImpl.java b/net/minecraft/server/network/ServerLoginPacketListenerImpl.java
|
diff --git a/net/minecraft/server/network/ServerLoginPacketListenerImpl.java b/net/minecraft/server/network/ServerLoginPacketListenerImpl.java
|
||||||
index f2329d1a9d9d4bf4c9d771e25e54f2f9ef65a76c..deee051c103f9797f4612e06c12f293ec54724ac 100644
|
index 95787d6d29ddb8dca78506bb2a115fa612fdaa29..841acc9fb6f0ca219c908812d20831aba0630126 100644
|
||||||
--- a/net/minecraft/server/network/ServerLoginPacketListenerImpl.java
|
--- a/net/minecraft/server/network/ServerLoginPacketListenerImpl.java
|
||||||
+++ b/net/minecraft/server/network/ServerLoginPacketListenerImpl.java
|
+++ b/net/minecraft/server/network/ServerLoginPacketListenerImpl.java
|
||||||
@@ -435,12 +435,30 @@ public class ServerLoginPacketListenerImpl implements ServerLoginPacketListener,
|
@@ -439,12 +439,30 @@ public class ServerLoginPacketListenerImpl implements ServerLoginPacketListener,
|
||||||
public void handleLoginAcknowledgement(final ServerboundLoginAcknowledgedPacket packet) {
|
public void handleLoginAcknowledgement(final ServerboundLoginAcknowledgedPacket packet) {
|
||||||
net.minecraft.network.protocol.PacketUtils.ensureRunningOnSameThread(packet, this, this.server.packetProcessor()); // CraftBukkit
|
net.minecraft.network.protocol.PacketUtils.ensureRunningOnSameThread(packet, this, this.server.packetProcessor()); // CraftBukkit
|
||||||
Validate.validState(this.state == ServerLoginPacketListenerImpl.State.PROTOCOL_SWITCHING, "Unexpected login acknowledgement packet");
|
Validate.validState(this.state == ServerLoginPacketListenerImpl.State.PROTOCOL_SWITCHING, "Unexpected login acknowledgement packet");
|
||||||
+1
-1
@@ -5,7 +5,7 @@ Subject: [PATCH] Add config for vanilla random
|
|||||||
|
|
||||||
|
|
||||||
diff --git a/net/minecraft/world/entity/Entity.java b/net/minecraft/world/entity/Entity.java
|
diff --git a/net/minecraft/world/entity/Entity.java b/net/minecraft/world/entity/Entity.java
|
||||||
index 3b98ef4310d9f996437af9f12ab3de2cf6f4dd63..a7f4a9f8bca00fda1b57e2245c57726bb1ce41ed 100644
|
index 58c65c3b1d425c6566313ba34588d9d16f66c52d..708bd774bdf535be82358bd6f4c7f8b0538285e3 100644
|
||||||
--- a/net/minecraft/world/entity/Entity.java
|
--- a/net/minecraft/world/entity/Entity.java
|
||||||
+++ b/net/minecraft/world/entity/Entity.java
|
+++ b/net/minecraft/world/entity/Entity.java
|
||||||
@@ -298,7 +298,7 @@ public abstract class Entity
|
@@ -298,7 +298,7 @@ public abstract class Entity
|
||||||
+2
-2
@@ -183,10 +183,10 @@ index f03fa06c0ba56f7f5e1e45bc1568a490751efde3..eee1c14249addbf4714df733870da974
|
|||||||
+ // KioCG end
|
+ // KioCG end
|
||||||
}
|
}
|
||||||
diff --git a/net/minecraft/world/entity/Entity.java b/net/minecraft/world/entity/Entity.java
|
diff --git a/net/minecraft/world/entity/Entity.java b/net/minecraft/world/entity/Entity.java
|
||||||
index a7f4a9f8bca00fda1b57e2245c57726bb1ce41ed..84fe83f25e72e8ce257421f62e532d4203438d2b 100644
|
index 708bd774bdf535be82358bd6f4c7f8b0538285e3..dc2a7aa39f6aa9ec6b5cfbce3bfec71e9c458dcb 100644
|
||||||
--- a/net/minecraft/world/entity/Entity.java
|
--- a/net/minecraft/world/entity/Entity.java
|
||||||
+++ b/net/minecraft/world/entity/Entity.java
|
+++ b/net/minecraft/world/entity/Entity.java
|
||||||
@@ -6475,4 +6475,6 @@ public abstract class Entity
|
@@ -6486,4 +6486,6 @@ public abstract class Entity
|
||||||
return ((ServerLevel) this.level()).isPositionEntityTicking(this.blockPosition());
|
return ((ServerLevel) this.level()).isPositionEntityTicking(this.blockPosition());
|
||||||
}
|
}
|
||||||
// Paper end
|
// Paper end
|
||||||
+6
-6
@@ -19,10 +19,10 @@ index 21733beb07c0df3cf6872ce84a07e85dfe5ee3e9..055911982349bab23ba8d6c88f06c014
|
|||||||
);
|
);
|
||||||
});
|
});
|
||||||
diff --git a/net/minecraft/world/entity/Entity.java b/net/minecraft/world/entity/Entity.java
|
diff --git a/net/minecraft/world/entity/Entity.java b/net/minecraft/world/entity/Entity.java
|
||||||
index 84fe83f25e72e8ce257421f62e532d4203438d2b..7b5fac05a53a80a7c9cdae4986f35c30285bcf81 100644
|
index dc2a7aa39f6aa9ec6b5cfbce3bfec71e9c458dcb..23dc3a2c0c124d842cf23e35b4a5d079d5d523da 100644
|
||||||
--- a/net/minecraft/world/entity/Entity.java
|
--- a/net/minecraft/world/entity/Entity.java
|
||||||
+++ b/net/minecraft/world/entity/Entity.java
|
+++ b/net/minecraft/world/entity/Entity.java
|
||||||
@@ -4549,6 +4549,31 @@ public abstract class Entity
|
@@ -4555,6 +4555,31 @@ public abstract class Entity
|
||||||
// Luminol end
|
// Luminol end
|
||||||
|
|
||||||
// TODO any events that can modify go HERE
|
// TODO any events that can modify go HERE
|
||||||
@@ -54,7 +54,7 @@ index 84fe83f25e72e8ce257421f62e532d4203438d2b..7b5fac05a53a80a7c9cdae4986f35c30
|
|||||||
|
|
||||||
// check for same region
|
// check for same region
|
||||||
if (destination == this.level()
|
if (destination == this.level()
|
||||||
@@ -4667,6 +4692,17 @@ public abstract class Entity
|
@@ -4673,6 +4698,17 @@ public abstract class Entity
|
||||||
case END: {
|
case END: {
|
||||||
if (destination.getTypeKey() == net.minecraft.world.level.dimension.LevelStem.END) {
|
if (destination.getTypeKey() == net.minecraft.world.level.dimension.LevelStem.END) {
|
||||||
BlockPos targetPos = ServerLevel.END_SPAWN_POINT;
|
BlockPos targetPos = ServerLevel.END_SPAWN_POINT;
|
||||||
@@ -72,7 +72,7 @@ index 84fe83f25e72e8ce257421f62e532d4203438d2b..7b5fac05a53a80a7c9cdae4986f35c30
|
|||||||
// need to load chunks so we can create the platform
|
// need to load chunks so we can create the platform
|
||||||
destination.moonrise$loadChunksAsync(
|
destination.moonrise$loadChunksAsync(
|
||||||
targetPos, 16, // load 16 blocks to be safe from block physics
|
targetPos, 16, // load 16 blocks to be safe from block physics
|
||||||
@@ -4694,6 +4730,17 @@ public abstract class Entity
|
@@ -4700,6 +4736,17 @@ public abstract class Entity
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
BlockPos spawnPos = destination.getRespawnData().pos();
|
BlockPos spawnPos = destination.getRespawnData().pos();
|
||||||
@@ -90,7 +90,7 @@ index 84fe83f25e72e8ce257421f62e532d4203438d2b..7b5fac05a53a80a7c9cdae4986f35c30
|
|||||||
// need to load chunk for heightmap
|
// need to load chunk for heightmap
|
||||||
destination.moonrise$loadChunksAsync(
|
destination.moonrise$loadChunksAsync(
|
||||||
spawnPos, 0,
|
spawnPos, 0,
|
||||||
@@ -4751,7 +4798,17 @@ public abstract class Entity
|
@@ -4757,7 +4804,17 @@ public abstract class Entity
|
||||||
WorldBorder destinationBorder = destination.getWorldBorder();
|
WorldBorder destinationBorder = destination.getWorldBorder();
|
||||||
double dimensionScale = net.minecraft.world.level.dimension.DimensionType.getTeleportationScale(origin.dimensionType(), destination.dimensionType());
|
double dimensionScale = net.minecraft.world.level.dimension.DimensionType.getTeleportationScale(origin.dimensionType(), destination.dimensionType());
|
||||||
BlockPos targetPos = destination.getWorldBorder().clampToBounds(this.getX() * dimensionScale, this.getY(), this.getZ() * dimensionScale);
|
BlockPos targetPos = destination.getWorldBorder().clampToBounds(this.getX() * dimensionScale, this.getY(), this.getZ() * dimensionScale);
|
||||||
@@ -108,7 +108,7 @@ index 84fe83f25e72e8ce257421f62e532d4203438d2b..7b5fac05a53a80a7c9cdae4986f35c30
|
|||||||
ca.spottedleaf.concurrentutil.completable.CallbackCompletable<BlockUtil.FoundRectangle> portalFound
|
ca.spottedleaf.concurrentutil.completable.CallbackCompletable<BlockUtil.FoundRectangle> portalFound
|
||||||
= new ca.spottedleaf.concurrentutil.completable.CallbackCompletable<>();
|
= new ca.spottedleaf.concurrentutil.completable.CallbackCompletable<>();
|
||||||
|
|
||||||
@@ -4888,6 +4945,15 @@ public abstract class Entity
|
@@ -4894,6 +4951,15 @@ public abstract class Entity
|
||||||
if (!this.canPortalAsync(destination, takePassengers)) {
|
if (!this.canPortalAsync(destination, takePassengers)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
+2
-2
@@ -21,7 +21,7 @@ index 35aa8df4aecd91387997f01c258f0d549dfba0f8..908cff4caa1457e07d809fb793d00d36
|
|||||||
private final List<Runnable> tickables = Lists.newArrayList();
|
private final List<Runnable> tickables = Lists.newArrayList();
|
||||||
// Paper - per-level GameRules
|
// Paper - per-level GameRules
|
||||||
diff --git a/net/minecraft/server/network/ServerLoginPacketListenerImpl.java b/net/minecraft/server/network/ServerLoginPacketListenerImpl.java
|
diff --git a/net/minecraft/server/network/ServerLoginPacketListenerImpl.java b/net/minecraft/server/network/ServerLoginPacketListenerImpl.java
|
||||||
index deee051c103f9797f4612e06c12f293ec54724ac..911fb0912c7bc6ab0e29c03a21c6bddb248bbc0a 100644
|
index 841acc9fb6f0ca219c908812d20831aba0630126..74f79cf51c4ff2dcda53054863a26725953d2b09 100644
|
||||||
--- a/net/minecraft/server/network/ServerLoginPacketListenerImpl.java
|
--- a/net/minecraft/server/network/ServerLoginPacketListenerImpl.java
|
||||||
+++ b/net/minecraft/server/network/ServerLoginPacketListenerImpl.java
|
+++ b/net/minecraft/server/network/ServerLoginPacketListenerImpl.java
|
||||||
@@ -167,11 +167,20 @@ public class ServerLoginPacketListenerImpl implements ServerLoginPacketListener,
|
@@ -167,11 +167,20 @@ public class ServerLoginPacketListenerImpl implements ServerLoginPacketListener,
|
||||||
@@ -63,7 +63,7 @@ index deee051c103f9797f4612e06c12f293ec54724ac..911fb0912c7bc6ab0e29c03a21c6bddb
|
|||||||
|
|
||||||
gameprofile = ServerLoginPacketListenerImpl.this.callPlayerPreLoginEvents(gameprofile); // Paper - Add more fields to AsyncPlayerPreLoginEvent
|
gameprofile = ServerLoginPacketListenerImpl.this.callPlayerPreLoginEvents(gameprofile); // Paper - Add more fields to AsyncPlayerPreLoginEvent
|
||||||
ServerLoginPacketListenerImpl.LOGGER.info("UUID of player {} is {}", gameprofile.name(), gameprofile.id());
|
ServerLoginPacketListenerImpl.LOGGER.info("UUID of player {} is {}", gameprofile.name(), gameprofile.id());
|
||||||
@@ -341,7 +359,7 @@ public class ServerLoginPacketListenerImpl implements ServerLoginPacketListener,
|
@@ -345,7 +363,7 @@ public class ServerLoginPacketListenerImpl implements ServerLoginPacketListener,
|
||||||
server.getPluginManager().callEvent(asyncEvent);
|
server.getPluginManager().callEvent(asyncEvent);
|
||||||
profile = asyncEvent.getPlayerProfile();
|
profile = asyncEvent.getPlayerProfile();
|
||||||
profile.complete(true); // Paper - setPlayerProfileAPI
|
profile.complete(true); // Paper - setPlayerProfileAPI
|
||||||
+1
-1
@@ -5,7 +5,7 @@ Subject: [PATCH] Leaves: Disable packet limit
|
|||||||
|
|
||||||
|
|
||||||
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 ecaa296f576c5c90fda89e0406d6552628ef5de3..d2e9d46bbd9ee4ce45419b11499d7a7bc50f0219 100644
|
index 8144de362b03ce63334765791701cec724776f42..63c78d8dbfdcfb908100052e36d75ffce8c9d613 100644
|
||||||
--- a/net/minecraft/network/Connection.java
|
--- a/net/minecraft/network/Connection.java
|
||||||
+++ b/net/minecraft/network/Connection.java
|
+++ b/net/minecraft/network/Connection.java
|
||||||
@@ -258,8 +258,8 @@ public class Connection extends SimpleChannelInboundHandler<Packet<?>> {
|
@@ -258,8 +258,8 @@ public class Connection extends SimpleChannelInboundHandler<Packet<?>> {
|
||||||
+3
-3
@@ -240,7 +240,7 @@ index 6e08d50794c4af4405f3e164a3fd46f376b3f78f..dd2d0940eece3e85078e574f66f71a4c
|
|||||||
|
|
||||||
int getContainerSize();
|
int getContainerSize();
|
||||||
diff --git a/net/minecraft/world/entity/Entity.java b/net/minecraft/world/entity/Entity.java
|
diff --git a/net/minecraft/world/entity/Entity.java b/net/minecraft/world/entity/Entity.java
|
||||||
index 7b5fac05a53a80a7c9cdae4986f35c30285bcf81..77ff989f2d2c2705a82d0e99e532c7073eb42825 100644
|
index 23dc3a2c0c124d842cf23e35b4a5d079d5d523da..5c2a2bc340f41fab8c1399b89708b41d0e4c670d 100644
|
||||||
--- a/net/minecraft/world/entity/Entity.java
|
--- a/net/minecraft/world/entity/Entity.java
|
||||||
+++ b/net/minecraft/world/entity/Entity.java
|
+++ b/net/minecraft/world/entity/Entity.java
|
||||||
@@ -324,7 +324,7 @@ public abstract class Entity
|
@@ -324,7 +324,7 @@ public abstract class Entity
|
||||||
@@ -252,7 +252,7 @@ index 7b5fac05a53a80a7c9cdae4986f35c30285bcf81..77ff989f2d2c2705a82d0e99e532c707
|
|||||||
private final VecDeltaCodec packetPositionCodec = new VecDeltaCodec();
|
private final VecDeltaCodec packetPositionCodec = new VecDeltaCodec();
|
||||||
public boolean needsSync;
|
public boolean needsSync;
|
||||||
public boolean syncPosition;
|
public boolean syncPosition;
|
||||||
@@ -4467,11 +4467,13 @@ public abstract class Entity
|
@@ -4473,11 +4473,13 @@ public abstract class Entity
|
||||||
}
|
}
|
||||||
|
|
||||||
protected Entity transformForAsyncTeleport(ServerLevel destination, Vec3 pos, Float yaw, Float pitch, Vec3 velocity) {
|
protected Entity transformForAsyncTeleport(ServerLevel destination, Vec3 pos, Float yaw, Float pitch, Vec3 velocity) {
|
||||||
@@ -266,7 +266,7 @@ index 7b5fac05a53a80a7c9cdae4986f35c30285bcf81..77ff989f2d2c2705a82d0e99e532c707
|
|||||||
if (copy instanceof net.minecraft.world.entity.boss.enderdragon.EnderDragon dragon) dragon.syncDragonPartsAfterTeleportTransform(); // Luminol - Sync dragon part when teleportation or firstly created
|
if (copy instanceof net.minecraft.world.entity.boss.enderdragon.EnderDragon dragon) dragon.syncDragonPartsAfterTeleportTransform(); // Luminol - Sync dragon part when teleportation or firstly created
|
||||||
// vanilla code used to call remove _after_ copying, and some stuff is required to be after copy - so add hook here
|
// vanilla code used to call remove _after_ copying, and some stuff is required to be after copy - so add hook here
|
||||||
// for example, clearing of inventory after switching dimensions
|
// for example, clearing of inventory after switching dimensions
|
||||||
@@ -6147,8 +6149,29 @@ public abstract class Entity
|
@@ -6153,8 +6155,29 @@ public abstract class Entity
|
||||||
this.setBoundingBox(this.makeBoundingBox());
|
this.setBoundingBox(this.makeBoundingBox());
|
||||||
}
|
}
|
||||||
// Paper end - Block invalid positions and bounding box
|
// Paper end - Block invalid positions and bounding box
|
||||||
+3
-3
@@ -10,10 +10,10 @@ VMP (https://github.com/RelativityMC/VMP-fabric)
|
|||||||
Licensed under: MIT (https://opensource.org/licenses/MIT)
|
Licensed under: MIT (https://opensource.org/licenses/MIT)
|
||||||
|
|
||||||
diff --git a/net/minecraft/world/entity/Entity.java b/net/minecraft/world/entity/Entity.java
|
diff --git a/net/minecraft/world/entity/Entity.java b/net/minecraft/world/entity/Entity.java
|
||||||
index 77ff989f2d2c2705a82d0e99e532c7073eb42825..3c3420c51d70eb9afb80db43635246a546d1562c 100644
|
index 5c2a2bc340f41fab8c1399b89708b41d0e4c670d..16e4d2f3193080c177d7ceb225fa9637b3ec1842 100644
|
||||||
--- a/net/minecraft/world/entity/Entity.java
|
--- a/net/minecraft/world/entity/Entity.java
|
||||||
+++ b/net/minecraft/world/entity/Entity.java
|
+++ b/net/minecraft/world/entity/Entity.java
|
||||||
@@ -1155,8 +1155,14 @@ public abstract class Entity
|
@@ -1156,8 +1156,14 @@ public abstract class Entity
|
||||||
private double moveStartY;
|
private double moveStartY;
|
||||||
private double moveStartZ;
|
private double moveStartZ;
|
||||||
// Paper end - detailed watchdog information
|
// Paper end - detailed watchdog information
|
||||||
@@ -28,7 +28,7 @@ index 77ff989f2d2c2705a82d0e99e532c7073eb42825..3c3420c51d70eb9afb80db43635246a5
|
|||||||
final Vec3 originalMovement = delta; // Paper - Expose pre-collision velocity
|
final Vec3 originalMovement = delta; // Paper - Expose pre-collision velocity
|
||||||
// Paper start - detailed watchdog information
|
// Paper start - detailed watchdog information
|
||||||
ca.spottedleaf.moonrise.common.util.TickThread.ensureTickThread("Cannot move an entity off-main");
|
ca.spottedleaf.moonrise.common.util.TickThread.ensureTickThread("Cannot move an entity off-main");
|
||||||
@@ -5641,6 +5647,11 @@ public abstract class Entity
|
@@ -5647,6 +5653,11 @@ public abstract class Entity
|
||||||
}
|
}
|
||||||
|
|
||||||
public final void setBoundingBox(final AABB bb) {
|
public final void setBoundingBox(final AABB bb) {
|
||||||
+4
-4
@@ -20,10 +20,10 @@ As part of: Akarin (https://github.com/Akarin-project/Akarin)
|
|||||||
Licensed under: GPL-3.0-only (https://www.gnu.org/licenses/gpl-3.0.html)
|
Licensed under: GPL-3.0-only (https://www.gnu.org/licenses/gpl-3.0.html)
|
||||||
|
|
||||||
diff --git a/net/minecraft/world/entity/Entity.java b/net/minecraft/world/entity/Entity.java
|
diff --git a/net/minecraft/world/entity/Entity.java b/net/minecraft/world/entity/Entity.java
|
||||||
index 3c3420c51d70eb9afb80db43635246a546d1562c..f38ce49165b6c46d039e82d676e24832e93a402e 100644
|
index 16e4d2f3193080c177d7ceb225fa9637b3ec1842..e3dd3a2e0e38eef886ecc46750c54e83756f4bde 100644
|
||||||
--- a/net/minecraft/world/entity/Entity.java
|
--- a/net/minecraft/world/entity/Entity.java
|
||||||
+++ b/net/minecraft/world/entity/Entity.java
|
+++ b/net/minecraft/world/entity/Entity.java
|
||||||
@@ -2441,8 +2441,8 @@ public abstract class Entity
|
@@ -2442,8 +2442,8 @@ public abstract class Entity
|
||||||
}
|
}
|
||||||
|
|
||||||
public void push(final Entity entity) {
|
public void push(final Entity entity) {
|
||||||
@@ -31,5 +31,5 @@ index 3c3420c51d70eb9afb80db43635246a546d1562c..f38ce49165b6c46d039e82d676e24832
|
|||||||
if (!this.isPassengerOfSameVehicle(entity)) {
|
if (!this.isPassengerOfSameVehicle(entity)) {
|
||||||
- if (!entity.noPhysics && !this.noPhysics) {
|
- if (!entity.noPhysics && !this.noPhysics) {
|
||||||
if (this.level.paperConfig().collisions.onlyPlayersCollide && !(entity instanceof ServerPlayer || this instanceof ServerPlayer)) return; // Paper - Collision option for requiring a player participant
|
if (this.level.paperConfig().collisions.onlyPlayersCollide && !(entity instanceof ServerPlayer || this instanceof ServerPlayer)) return; // Paper - Collision option for requiring a player participant
|
||||||
double xa = entity.getX() - this.getX();
|
// Paper start - Add EntityCollideWithEntity Event
|
||||||
double za = entity.getZ() - this.getZ();
|
if (io.papermc.paper.event.entity.EntityCollideWithEntityEvent.getHandlerList().getRegisteredListeners().length != 0 &&
|
||||||
+2
-2
@@ -7,10 +7,10 @@ License: GPL-3.0-only (https://www.gnu.org/licenses/gpl-3.0.html)
|
|||||||
Gale - https://github.com/GaleMC/Gale
|
Gale - https://github.com/GaleMC/Gale
|
||||||
|
|
||||||
diff --git a/net/minecraft/world/entity/Entity.java b/net/minecraft/world/entity/Entity.java
|
diff --git a/net/minecraft/world/entity/Entity.java b/net/minecraft/world/entity/Entity.java
|
||||||
index f38ce49165b6c46d039e82d676e24832e93a402e..0868c067c5a455d1984d59b22426c2f019b25c9f 100644
|
index e3dd3a2e0e38eef886ecc46750c54e83756f4bde..9d2e62c4c5cd0668a9083c7af9abed96b4589f7f 100644
|
||||||
--- a/net/minecraft/world/entity/Entity.java
|
--- a/net/minecraft/world/entity/Entity.java
|
||||||
+++ b/net/minecraft/world/entity/Entity.java
|
+++ b/net/minecraft/world/entity/Entity.java
|
||||||
@@ -1302,8 +1302,17 @@ public abstract class Entity
|
@@ -1303,8 +1303,17 @@ public abstract class Entity
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
+2
-2
@@ -18,7 +18,7 @@ index e9307ef10502856378d7831fb7800dd77230130c..6bca982627cf6a865820df75be2814a7
|
|||||||
double rangeY = level.paperConfig().entities.trackingRangeY.get(this.entity, -1);
|
double rangeY = level.paperConfig().entities.trackingRangeY.get(this.entity, -1);
|
||||||
if (rangeY != -1) {
|
if (rangeY != -1) {
|
||||||
diff --git a/net/minecraft/world/entity/Entity.java b/net/minecraft/world/entity/Entity.java
|
diff --git a/net/minecraft/world/entity/Entity.java b/net/minecraft/world/entity/Entity.java
|
||||||
index 0868c067c5a455d1984d59b22426c2f019b25c9f..b9f9dd85d259306db9eb9daf0a9ec36f27dfddb7 100644
|
index 9d2e62c4c5cd0668a9083c7af9abed96b4589f7f..939ad903434aa3766a6bf647743086693b8c3d19 100644
|
||||||
--- a/net/minecraft/world/entity/Entity.java
|
--- a/net/minecraft/world/entity/Entity.java
|
||||||
+++ b/net/minecraft/world/entity/Entity.java
|
+++ b/net/minecraft/world/entity/Entity.java
|
||||||
@@ -164,7 +164,7 @@ public abstract class Entity
|
@@ -164,7 +164,7 @@ public abstract class Entity
|
||||||
@@ -30,7 +30,7 @@ index 0868c067c5a455d1984d59b22426c2f019b25c9f..b9f9dd85d259306db9eb9daf0a9ec36f
|
|||||||
// CraftBukkit start
|
// CraftBukkit start
|
||||||
private static final int CURRENT_LEVEL = 2;
|
private static final int CURRENT_LEVEL = 2;
|
||||||
static boolean isLevelAtLeast(ValueInput input, int level) {
|
static boolean isLevelAtLeast(ValueInput input, int level) {
|
||||||
@@ -6586,4 +6586,48 @@ public abstract class Entity
|
@@ -6597,4 +6597,48 @@ public abstract class Entity
|
||||||
// Paper end
|
// Paper end
|
||||||
|
|
||||||
public boolean shouldTickHot() { return this.tickCount > 20 * 10 && this.isAlive(); } // KioCG
|
public boolean shouldTickHot() { return this.tickCount > 20 * 10 && this.isAlive(); } // KioCG
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user