Revert WECUI visuals on logout. Fixes #272

This commit is contained in:
bloodshot 2020-09-10 19:06:09 -04:00
parent 221399d93b
commit 2de749037d
2 changed files with 6 additions and 0 deletions

View File

@ -880,5 +880,8 @@ public class GDPlayerData implements PlayerData {
this.commandInputTimestamp = null;
this.recordChatTimestamp = null;
this.tempVisualUniqueId = null;
if (GriefDefenderPlugin.getInstance().getWorldEditProvider() != null) {
GriefDefenderPlugin.getInstance().getWorldEditProvider().revertAllVisuals(this.playerID);
}
}
}

View File

@ -885,5 +885,8 @@ public class GDPlayerData implements PlayerData {
this.commandInputTimestamp = null;
this.recordChatTimestamp = null;
this.tempVisualUniqueId = null;
if (GriefDefenderPlugin.getInstance().getWorldEditProvider() != null) {
GriefDefenderPlugin.getInstance().getWorldEditProvider().revertAllVisuals(this.playerID);
}
}
}