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