Skip to content

Commit

Permalink
Fix writing of AlignTargetAndCameraForward
Browse files Browse the repository at this point in the history
  • Loading branch information
Alemiz112 committed Oct 21, 2024
1 parent 9166581 commit d8077ed
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public void writePreset(ByteBuf buffer, BedrockCodecHelper helper, CameraPreset
helper.writeOptionalNull(buffer, preset.getListener(), (buf, listener) -> buf.writeByte(listener.ordinal()));
helper.writeOptional(buffer, OptionalBoolean::isPresent, preset.getPlayEffect(),
(buf, optional) -> buf.writeBoolean(optional.getAsBoolean()));
helper.writeOptionalNull(buffer, preset.getAlignTargetAndCameraForward(),
helper.writeOptional(buffer, OptionalBoolean::isPresent, preset.getAlignTargetAndCameraForward(),
(buf, optional) -> buf.writeBoolean(optional.getAsBoolean()));
}

Expand Down

0 comments on commit d8077ed

Please sign in to comment.