13
0
geforkt von Mirrors/Paper

Properly call overloaded super onDisconnect

Since the method is overloaded, the call to super (which is changed
to call the overloaded method) without the additional parameters
will result in recursion.
Dieser Commit ist enthalten in:
Spottedleaf 2023-09-26 13:16:21 -07:00
Ursprung ec66a2c91c
Commit d7561e90f0

Datei anzeigen

@ -71,8 +71,9 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
// CraftBukkit end
ServerGamePacketListenerImpl.LOGGER.info("{} lost connection: {}", this.player.getName().getString(), reason.getString());
- this.removePlayerFromWorld();
- super.onDisconnect(reason);
+ this.removePlayerFromWorld(quitMessage); // Paper
super.onDisconnect(reason);
+ super.onDisconnect(reason, quitMessage); // Paper
}
+ // Paper start