mirror of
https://github.com/Shiewk/Widgets.git
synced 2026-04-28 11:34:17 +02:00
(2.4.0) Fix unknown direction display
This commit is contained in:
+1
-1
@@ -6,7 +6,7 @@ minecraft_version=1.21.11
|
|||||||
yarn_mappings=1.21.11+build.4
|
yarn_mappings=1.21.11+build.4
|
||||||
loader_version=0.17.3
|
loader_version=0.17.3
|
||||||
# Mod Properties
|
# Mod Properties
|
||||||
mod_version=2.3.1
|
mod_version=2.4.0
|
||||||
maven_group=de.shiewk
|
maven_group=de.shiewk
|
||||||
archives_base_name=Widgets
|
archives_base_name=Widgets
|
||||||
# Dependencies
|
# Dependencies
|
||||||
|
|||||||
@@ -38,7 +38,7 @@ public class DirectionWidget extends BasicTextWidget {
|
|||||||
|
|
||||||
public Text format(int digits) {
|
public Text format(int digits) {
|
||||||
String yaw = "0";
|
String yaw = "0";
|
||||||
String direction = "???";
|
String direction = "unknown";
|
||||||
ClientPlayerEntity player = MinecraftClient.getInstance().player;
|
ClientPlayerEntity player = MinecraftClient.getInstance().player;
|
||||||
if (player != null) {
|
if (player != null) {
|
||||||
yaw = WidgetUtils.reduceDigits(MathHelper.wrapDegrees(player.getYaw()), digits);
|
yaw = WidgetUtils.reduceDigits(MathHelper.wrapDegrees(player.getYaw()), digits);
|
||||||
|
|||||||
@@ -123,8 +123,10 @@
|
|||||||
"widgets.widgets.direction.short.east": "O",
|
"widgets.widgets.direction.short.east": "O",
|
||||||
"widgets.widgets.direction.short.north": "N",
|
"widgets.widgets.direction.short.north": "N",
|
||||||
"widgets.widgets.direction.short.south": "S",
|
"widgets.widgets.direction.short.south": "S",
|
||||||
|
"widgets.widgets.direction.short.unknown": "?",
|
||||||
"widgets.widgets.direction.short.west": "W",
|
"widgets.widgets.direction.short.west": "W",
|
||||||
"widgets.widgets.direction.south": "Süden",
|
"widgets.widgets.direction.south": "Süden",
|
||||||
|
"widgets.widgets.direction.unknown": "Unbekannt",
|
||||||
"widgets.widgets.direction.west": "Westen",
|
"widgets.widgets.direction.west": "Westen",
|
||||||
"widgets.widgets.fps": "FPS",
|
"widgets.widgets.fps": "FPS",
|
||||||
"widgets.widgets.fps.description": "Zeigt deine aktuellen FPS an.",
|
"widgets.widgets.fps.description": "Zeigt deine aktuellen FPS an.",
|
||||||
|
|||||||
@@ -123,8 +123,10 @@
|
|||||||
"widgets.widgets.direction.short.east": "E",
|
"widgets.widgets.direction.short.east": "E",
|
||||||
"widgets.widgets.direction.short.north": "N",
|
"widgets.widgets.direction.short.north": "N",
|
||||||
"widgets.widgets.direction.short.south": "S",
|
"widgets.widgets.direction.short.south": "S",
|
||||||
|
"widgets.widgets.direction.short.unknown": "?",
|
||||||
"widgets.widgets.direction.short.west": "W",
|
"widgets.widgets.direction.short.west": "W",
|
||||||
"widgets.widgets.direction.south": "South",
|
"widgets.widgets.direction.south": "South",
|
||||||
|
"widgets.widgets.direction.unknown": "Unknown",
|
||||||
"widgets.widgets.direction.west": "West",
|
"widgets.widgets.direction.west": "West",
|
||||||
"widgets.widgets.fps": "FPS",
|
"widgets.widgets.fps": "FPS",
|
||||||
"widgets.widgets.fps.description": "Shows your current FPS.",
|
"widgets.widgets.fps.description": "Shows your current FPS.",
|
||||||
|
|||||||
Reference in New Issue
Block a user