mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-01 05:47:45 +01:00
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.
This commit is contained in:
parent
ec66a2c91c
commit
d7561e90f0
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user