You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
context.player?.sendMessage(Text.literal("There are too many devices connected to this box! Max is $MAX_DEVICES"), true)
62
+
context.player?.sendMessage(Text.literal("There are too many devices connected to this box! Max is ${RoadworksMain.CONFIG!!.trafficCabinet.maxDevices}"), true)
67
63
returnActionResult.SUCCESS
68
64
}
69
65
@@ -83,9 +79,9 @@ class Linker(settings: Settings) : Item(settings) {
context.player?.sendMessage(Text.literal("This device is too far! Max distance is $MAX_DEVICE_DISTANCE blocks"), true)
84
+
context.player?.sendMessage(Text.literal("This device is too far! Max distance is ${RoadworksMain.CONFIG!!.trafficCabinet.maxLinkDistance} blocks"), true)
89
85
return
90
86
}
91
87
@@ -133,9 +129,9 @@ class Linker(settings: Settings) : Item(settings) {
context.player?.sendMessage(Text.literal("There are too many devices connected to this box! Max is $MAX_DEVICES"), true)
134
+
context.player?.sendMessage(Text.literal("There are too many devices connected to this box! Max is ${RoadworksMain.CONFIG!!.trafficCabinet.maxDevices}"), true)
139
135
return
140
136
}
141
137
@@ -147,9 +143,9 @@ class Linker(settings: Settings) : Item(settings) {
context.player?.sendMessage(Text.literal("This device is too far! Max distance is $MAX_DEVICE_DISTANCE blocks"), true)
148
+
context.player?.sendMessage(Text.literal("This device is too far! Max distance is ${RoadworksMain.CONFIG!!.trafficCabinet.maxLinkDistance} blocks"), true)
0 commit comments