Skip to content

Commit

Permalink
fix: issues in GUIs
Browse files Browse the repository at this point in the history
  • Loading branch information
Uhutown committed Sep 25, 2023
1 parent 0f34f53 commit ab05d06
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion guilib
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public ContainerSignalBox(final GuiInfo info) {
public void sendAllDataToRemote() {
final SignalBoxGrid grid = tile.getSignalBoxGrid();
final WriteBuffer buffer = new WriteBuffer();
buffer.putByte((byte) SignalBoxNetwork.SEND_GRID.ordinal());
buffer.putEnumValue(SignalBoxNetwork.SEND_GRID);
buffer.putBlockPos(info.pos);
grid.writeNetwork(buffer);
final PosIdentifier identifier = new PosIdentifier(tile.getBlockPos(), info.world);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -928,7 +928,7 @@ private void sendName(final Point point, final String name) {
if (!allPacketsRecived)
return;
final WriteBuffer buffer = new WriteBuffer();
buffer.putByte((byte) SignalBoxNetwork.SEND_NAME.ordinal());
buffer.putEnumValue(SignalBoxNetwork.SEND_NAME);
point.writeNetwork(buffer);
buffer.putString(name);
OpenSignalsMain.network.sendTo(info.player, buffer);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,7 @@ private void initInternal() {
lowerEntity.setInherits(true);

final String name = I18n.get("tile." + signal.delegate.name().getPath() + ".name")
+ "; Name: "
+ ClientNameHandler.getClientName(new NameStateInfo(mc.level, controller.getPos()));

final UILabel titlelabel = new UILabel(name);
Expand Down

0 comments on commit ab05d06

Please sign in to comment.