Fix Forge user data sometimes missing after switching worlds (#3447)

This commit is contained in:
IzzelAliz 2022-08-04 03:46:22 +08:00 committed by GitHub
parent 106455a311
commit 8ebdbdbf0b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -58,10 +58,6 @@ public class UserCapabilityListener {
@SubscribeEvent
public void onPlayerClone(PlayerEvent.Clone event) {
if (!event.isWasDeath()) {
return;
}
Player previousPlayer = event.getOriginal();
Player currentPlayer = event.getPlayer();