From 62f2fc9714d4fe3227d1037f2ed951db914a5838 Mon Sep 17 00:00:00 2001 From: bloodmc Date: Mon, 13 Mar 2023 04:58:39 -0400 Subject: [PATCH] Fix Forge player data corrupted on respawn (#3557, #3584, #3596, #3601) --- .../luckperms/forge/capabilities/UserCapabilityListener.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/forge/src/main/java/me/lucko/luckperms/forge/capabilities/UserCapabilityListener.java b/forge/src/main/java/me/lucko/luckperms/forge/capabilities/UserCapabilityListener.java index a0c7015b8..8a54108c1 100644 --- a/forge/src/main/java/me/lucko/luckperms/forge/capabilities/UserCapabilityListener.java +++ b/forge/src/main/java/me/lucko/luckperms/forge/capabilities/UserCapabilityListener.java @@ -68,6 +68,8 @@ public class UserCapabilityListener { current.initialise(previous); current.getQueryOptionsCache().invalidate(); + } catch (IllegalStateException e) { + // continue on if we cannot copy original data } finally { previousPlayer.invalidateCaps(); }