Skip to content

Commit

Permalink
feat: added CustomName to Signal Controller
Browse files Browse the repository at this point in the history
  • Loading branch information
Uhutown committed Sep 25, 2023
1 parent 5acecad commit 0f34f53
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,10 @@
import com.troblecodings.signals.enums.EnumMode;
import com.troblecodings.signals.enums.EnumState;
import com.troblecodings.signals.enums.SignalControllerNetwork;
import com.troblecodings.signals.handler.ClientNameHandler;
import com.troblecodings.signals.handler.ClientSignalStateHandler;
import com.troblecodings.signals.handler.ClientSignalStateInfo;
import com.troblecodings.signals.handler.NameStateInfo;
import com.troblecodings.signals.init.OSBlocks;
import com.troblecodings.signals.models.SignalCustomModel;

Expand Down Expand Up @@ -242,7 +244,8 @@ private void initInternal() {
}
lowerEntity.setInherits(true);

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

final UILabel titlelabel = new UILabel(name);
titlelabel.setCenterX(false);
Expand Down

0 comments on commit 0f34f53

Please sign in to comment.