Skip to content

Commit

Permalink
Merge pull request #657 from joshuaprince/sign-editor
Browse files Browse the repository at this point in the history
Properly read isFrontText in sign edit wrappers
  • Loading branch information
AoElite authored Jan 19, 2024
2 parents 36b7375 + 7b800a9 commit d6ee3b3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
public class WrapperPlayClientUpdateSign extends PacketWrapper<WrapperPlayClientUpdateSign> {
private Vector3i blockPosition;
private String[] textLines;
private boolean isFrontText = true;
private boolean isFrontText;

public WrapperPlayClientUpdateSign(PacketReceiveEvent event) {
super(event);
Expand All @@ -55,6 +55,8 @@ public void read() {
}
if (serverVersion.isNewerThanOrEquals(ServerVersion.V_1_20)) {
isFrontText = readBoolean();
} else {
isFrontText = true;
}
textLines = new String[4];
for (int i = 0; i < 4; i++) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

public class WrapperPlayServerOpenSignEditor extends PacketWrapper<WrapperPlayServerOpenSignEditor> {
private Vector3i position;
private boolean isFrontText = true;
private boolean isFrontText;

public WrapperPlayServerOpenSignEditor(PacketSendEvent event) {
super(event);
Expand All @@ -50,6 +50,8 @@ public void read() {
}
if (serverVersion.isNewerThanOrEquals(ServerVersion.V_1_20)) {
isFrontText = readBoolean();
} else {
isFrontText = true;
}
}

Expand Down

0 comments on commit d6ee3b3

Please sign in to comment.