mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-14 03:35:51 -07:00
Massive renaming update in nms. If you bypassed Bukkit, you will likely break.
Also minimized all the nms diffs and generic cleanups all around.
This commit is contained in:
@@ -24,7 +24,7 @@ public class NetLoginHandler extends NetHandler {
|
||||
|
||||
// CraftBukkit start
|
||||
public Socket getSocket() {
|
||||
return networkManager.socket;
|
||||
return this.networkManager.socket;
|
||||
}
|
||||
// CraftBukkit end
|
||||
|
||||
@@ -44,7 +44,7 @@ public class NetLoginHandler extends NetHandler {
|
||||
public void disconnect(String s) {
|
||||
try {
|
||||
a.info("Disconnecting " + this.b() + ": " + s);
|
||||
this.networkManager.a((Packet) (new Packet255KickDisconnect(s)));
|
||||
this.networkManager.queue(new Packet255KickDisconnect(s));
|
||||
this.networkManager.d();
|
||||
this.c = true;
|
||||
} catch (Exception exception) {
|
||||
@@ -55,9 +55,9 @@ public class NetLoginHandler extends NetHandler {
|
||||
public void a(Packet2Handshake packet2handshake) {
|
||||
if (this.server.onlineMode) {
|
||||
this.i = Long.toHexString(d.nextLong());
|
||||
this.networkManager.a((Packet) (new Packet2Handshake(this.i)));
|
||||
this.networkManager.queue(new Packet2Handshake(this.i));
|
||||
} else {
|
||||
this.networkManager.a((Packet) (new Packet2Handshake("-")));
|
||||
this.networkManager.queue(new Packet2Handshake("-"));
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user