mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-08 08:02:13 -07:00
readd beacon effect cause
This commit is contained in:
@@ -21,11 +21,11 @@
|
||||
private final Queue<Consumer<Connection>> pendingActions = Queues.newConcurrentLinkedQueue();
|
||||
public Channel channel;
|
||||
public SocketAddress address;
|
||||
+ // Spigot Start
|
||||
+ // Spigot start
|
||||
+ public java.util.UUID spoofedUUID;
|
||||
+ public com.mojang.authlib.properties.Property[] spoofedProfile;
|
||||
+ public boolean preparing = true;
|
||||
+ // Spigot End
|
||||
+ // Spigot end
|
||||
@Nullable
|
||||
private volatile PacketListener disconnectListener;
|
||||
@Nullable
|
||||
@@ -70,13 +70,11 @@
|
||||
|
||||
public Connection(PacketFlow receiving) {
|
||||
this.receiving = receiving;
|
||||
@@ -116,6 +_,9 @@
|
||||
@@ -116,6 +_,7 @@
|
||||
super.channelActive(context);
|
||||
this.channel = context.channel();
|
||||
this.address = this.channel.remoteAddress();
|
||||
+ // Spigot Start
|
||||
+ this.preparing = false;
|
||||
+ // Spigot End
|
||||
+ this.preparing = false; // Spigot
|
||||
if (this.delayedDisconnect != null) {
|
||||
this.disconnect(this.delayedDisconnect);
|
||||
}
|
||||
@@ -228,13 +226,11 @@
|
||||
}
|
||||
|
||||
if (this.tickCount++ % 20 == 0) {
|
||||
@@ -432,12 +_,15 @@
|
||||
@@ -432,12 +_,13 @@
|
||||
}
|
||||
|
||||
public void disconnect(DisconnectionDetails disconnectionDetails) {
|
||||
+ // Spigot Start
|
||||
+ this.preparing = false;
|
||||
+ // Spigot End
|
||||
+ this.preparing = false; // Spigot
|
||||
if (this.channel == null) {
|
||||
this.delayedDisconnect = disconnectionDetails;
|
||||
}
|
||||
|
Reference in New Issue
Block a user