mirror of
https://github.com/Sollace/Unicopia.git
synced 2025-02-01 11:36:43 +01:00
Fix null camera crash
This commit is contained in:
parent
498577294e
commit
f84ef86546
1 changed files with 1 additions and 1 deletions
|
@ -65,7 +65,7 @@ public class UnicopiaClient implements ClientModInitializer {
|
|||
private ZapAppleStageStore.Stage zapAppleStage = ZapAppleStageStore.Stage.HIBERNATING;
|
||||
|
||||
public static Optional<PlayerCamera> getCamera() {
|
||||
return Optional.of(getNullableCamera());
|
||||
return Optional.ofNullable(getNullableCamera());
|
||||
}
|
||||
|
||||
@Nullable
|
||||
|
|
Loading…
Reference in a new issue