mirror of
https://github.com/GeyserExtensionists/GeyserUtils.git
synced 2025-12-19 14:59:18 +00:00
stop throw error
This commit is contained in:
@@ -22,8 +22,9 @@ public class CameraPreset {
|
||||
|
||||
public static void registerCameraPresets(CameraPreset... presets) {
|
||||
for (var preset : presets) {
|
||||
if (PRESETS.containsKey(preset.getIdentifier()))
|
||||
throw new IllegalArgumentException("Camera preset " + preset.getIdentifier() + " already exists!");
|
||||
if (PRESETS.containsKey(preset.getIdentifier())) {
|
||||
continue;
|
||||
}
|
||||
PRESETS.put(preset.getIdentifier(), preset);
|
||||
}
|
||||
int id = 0;
|
||||
|
||||
Reference in New Issue
Block a user