mirror of
https://github.com/Winds-Studio/Leaf.git
synced 2025-12-21 07:59:26 +00:00
Updated Upstream (Gale/Leaves)
Upstream has released updates that appear to apply and compile correctly Gale Changes: Dreeam-qwq/Gale@9c48e95c Update LithiumHashPalette Leaves Changes: LeavesMC/Leaves@74cb952f Fix some protocol LeavesMC/Leaves@99b3aafc Fix bot action, and entity tickCount
This commit is contained in:
@@ -2,7 +2,7 @@ group=cn.dreeam.leaf
|
|||||||
mcVersion=1.21.4
|
mcVersion=1.21.4
|
||||||
version=1.21.4-R0.1-SNAPSHOT
|
version=1.21.4-R0.1-SNAPSHOT
|
||||||
|
|
||||||
galeCommit=57be1e6f9c39bca76bb15c965e44f2dba521b293
|
galeCommit=9c48e95c26a5fea9b99660b019ee909c25448d51
|
||||||
|
|
||||||
org.gradle.configuration-cache=true
|
org.gradle.configuration-cache=true
|
||||||
org.gradle.caching=true
|
org.gradle.caching=true
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ and change store way to sql maybe?
|
|||||||
Original license: GPLv3
|
Original license: GPLv3
|
||||||
Original project: https://github.com/LeavesMC/Leaves
|
Original project: https://github.com/LeavesMC/Leaves
|
||||||
|
|
||||||
Commit: f07c26c892bc919de82ee0c90ccd5bdca41f20ed
|
Commit: 99b3aafce1f162c68a771fe56d77f33648636b7d
|
||||||
|
|
||||||
diff --git a/net/minecraft/network/protocol/common/custom/CustomPacketPayload.java b/net/minecraft/network/protocol/common/custom/CustomPacketPayload.java
|
diff --git a/net/minecraft/network/protocol/common/custom/CustomPacketPayload.java b/net/minecraft/network/protocol/common/custom/CustomPacketPayload.java
|
||||||
index fb263fa1f30a7dfcb7ec2656abfb38e5fe88eac9..7e19dfe90a63ff26f03b95891dacb7360bba5a3c 100644
|
index fb263fa1f30a7dfcb7ec2656abfb38e5fe88eac9..7e19dfe90a63ff26f03b95891dacb7360bba5a3c 100644
|
||||||
|
|||||||
@@ -191,7 +191,7 @@ index 622257dbbe572de33e15abef9055016268730261..dfb4524d80f642eff1b146dd2fbfa07f
|
|||||||
private final ServerStatsCounter stats;
|
private final ServerStatsCounter stats;
|
||||||
private float lastRecordedHealthAndAbsorption = Float.MIN_VALUE;
|
private float lastRecordedHealthAndAbsorption = Float.MIN_VALUE;
|
||||||
diff --git a/net/minecraft/server/players/PlayerList.java b/net/minecraft/server/players/PlayerList.java
|
diff --git a/net/minecraft/server/players/PlayerList.java b/net/minecraft/server/players/PlayerList.java
|
||||||
index e3d09d5f4efb32bb276e001e5ee747a775b502ee..86ce80765eb7645533806f730b15557f8ea6a9a2 100644
|
index e3d09d5f4efb32bb276e001e5ee747a775b502ee..78b15d750d75e5d4c2318a3a18e83afdd5f4fbe1 100644
|
||||||
--- a/net/minecraft/server/players/PlayerList.java
|
--- a/net/minecraft/server/players/PlayerList.java
|
||||||
+++ b/net/minecraft/server/players/PlayerList.java
|
+++ b/net/minecraft/server/players/PlayerList.java
|
||||||
@@ -132,6 +132,7 @@ public abstract class PlayerList {
|
@@ -132,6 +132,7 @@ public abstract class PlayerList {
|
||||||
@@ -206,7 +206,7 @@ index e3d09d5f4efb32bb276e001e5ee747a775b502ee..86ce80765eb7645533806f730b15557f
|
|||||||
|
|
||||||
abstract public void loadAndSaveFiles(); // Paper - fix converting txt to json file; moved from DedicatedPlayerList constructor
|
abstract public void loadAndSaveFiles(); // Paper - fix converting txt to json file; moved from DedicatedPlayerList constructor
|
||||||
|
|
||||||
+ // Leaves start - replay api
|
+ // Leaves start - replay mod api
|
||||||
+ public void placeNewPhotographer(Connection connection, org.leavesmc.leaves.replay.ServerPhotographer player, ServerLevel worldserver) {
|
+ public void placeNewPhotographer(Connection connection, org.leavesmc.leaves.replay.ServerPhotographer player, ServerLevel worldserver) {
|
||||||
+ player.isRealPlayer = true; // Paper
|
+ player.isRealPlayer = true; // Paper
|
||||||
+ player.loginTime = System.currentTimeMillis(); // Paper
|
+ player.loginTime = System.currentTimeMillis(); // Paper
|
||||||
@@ -304,7 +304,7 @@ index e3d09d5f4efb32bb276e001e5ee747a775b502ee..86ce80765eb7645533806f730b15557f
|
|||||||
+ );
|
+ );
|
||||||
+ }
|
+ }
|
||||||
+ }
|
+ }
|
||||||
+ // Leaves end - replay api
|
+ // Leaves end - replay mod api
|
||||||
+
|
+
|
||||||
public void placeNewPlayer(Connection connection, ServerPlayer player, CommonListenerCookie cookie) {
|
public void placeNewPlayer(Connection connection, ServerPlayer player, CommonListenerCookie cookie) {
|
||||||
player.isRealPlayer = true; // Paper
|
player.isRealPlayer = true; // Paper
|
||||||
|
|||||||
@@ -38,14 +38,14 @@ public record RequestBlockPayload(BlockAccessorImpl.SyncData data, List<@Nullabl
|
|||||||
CODEC.encode(ProtocolUtils.decorate(buf), this);
|
CODEC.encode(ProtocolUtils.decorate(buf), this);
|
||||||
}
|
}
|
||||||
|
|
||||||
@New
|
|
||||||
public static RequestBlockPayload create(ResourceLocation location, FriendlyByteBuf buf) {
|
|
||||||
return CODEC.decode(ProtocolUtils.decorate(buf));
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@NotNull
|
@NotNull
|
||||||
public ResourceLocation id() {
|
public ResourceLocation id() {
|
||||||
return PACKET_REQUEST_BLOCK;
|
return PACKET_REQUEST_BLOCK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@New
|
||||||
|
public static RequestBlockPayload create(ResourceLocation location, FriendlyByteBuf buf) {
|
||||||
|
return CODEC.decode(ProtocolUtils.decorate(buf));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
@@ -41,14 +41,15 @@ public record RequestEntityPayload(EntityAccessorImpl.SyncData data,
|
|||||||
CODEC.encode(ProtocolUtils.decorate(buf), this);
|
CODEC.encode(ProtocolUtils.decorate(buf), this);
|
||||||
}
|
}
|
||||||
|
|
||||||
@New
|
|
||||||
public static RequestEntityPayload create(ResourceLocation location, FriendlyByteBuf buf) {
|
|
||||||
return CODEC.decode(ProtocolUtils.decorate(buf));
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@NotNull
|
@NotNull
|
||||||
public ResourceLocation id() {
|
public ResourceLocation id() {
|
||||||
return PACKET_REQUEST_ENTITY;
|
return PACKET_REQUEST_ENTITY;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@New
|
||||||
|
public static RequestEntityPayload create(ResourceLocation location, FriendlyByteBuf buf) {
|
||||||
|
return CODEC.decode(ProtocolUtils.decorate(buf));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -43,4 +43,9 @@ public record ServerHandshakePayload(Map<ResourceLocation, Object> serverConfig,
|
|||||||
public ResourceLocation id() {
|
public ResourceLocation id() {
|
||||||
return PACKET_SERVER_HANDSHAKE;
|
return PACKET_SERVER_HANDSHAKE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@New
|
||||||
|
public static ServerHandshakePayload create(ResourceLocation location, FriendlyByteBuf buf) {
|
||||||
|
return CODEC.decode(ProtocolUtils.decorate(buf));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user