Fix some stuff related to CRIU

This commit is contained in:
2025-11-05 17:15:20 +01:00
parent 2534451e26
commit a3273f6814
2 changed files with 18 additions and 1 deletions
@@ -46,6 +46,15 @@ public class WorldEditRendererCUIEditor implements Listener {
}
}
@EventHandler
public void onCRIUSleep(CRIUSleepEvent event) {
for (Type type : Type.values()) {
type.materialCache.clear();
type.widthCache.clear();
}
}
@AllArgsConstructor
public enum Type {
SELECTION("cui_selection_material", "cui_selection_width", Material.PURPLE_CONCRETE, Width.MEDIUM),