forked from SteamWar/SteamWar
Fix some stuff related to CRIU
This commit is contained in:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user