diff --git a/src/main/java/dev/hephaestus/glowcase/client/gui/screen/ingame/TextBlockEditScreen.java b/src/main/java/dev/hephaestus/glowcase/client/gui/screen/ingame/TextBlockEditScreen.java index 5e4430f..f315481 100644 --- a/src/main/java/dev/hephaestus/glowcase/client/gui/screen/ingame/TextBlockEditScreen.java +++ b/src/main/java/dev/hephaestus/glowcase/client/gui/screen/ingame/TextBlockEditScreen.java @@ -73,7 +73,7 @@ public void init() { this.changeAlignment.setMessage(Text.stringifiedTranslatable("gui.glowcase.alignment", this.textBlockEntity.textAlignment)); }).dimensions(120 + innerPadding, 0, 160, 20).build(); - this.shadowToggle = ButtonWidget.builder(Text.translatable("gui.glowcase.shadow_type", this.textBlockEntity.shadowType), action -> { + this.shadowToggle = ButtonWidget.builder(Text.translatable("gui.glowcase.shadow_type", this.textBlockEntity.shadowType.toString()), action -> { switch (textBlockEntity.shadowType) { case DROP -> textBlockEntity.shadowType = TextBlockEntity.ShadowType.PLATE; case PLATE -> textBlockEntity.shadowType = TextBlockEntity.ShadowType.NONE; @@ -81,7 +81,7 @@ public void init() { } this.textBlockEntity.renderDirty = true; - this.shadowToggle.setMessage(Text.translatable("gui.glowcase.shadow_type", this.textBlockEntity.shadowType)); + this.shadowToggle.setMessage(Text.translatable("gui.glowcase.shadow_type", this.textBlockEntity.shadowType.toString())); }).dimensions(120 + innerPadding, 20 + innerPadding, 160, 20).build(); this.colorEntryWidget = new TextFieldWidget(this.client.textRenderer, 280 + innerPadding * 2, 0, 50, 20, Text.empty()); diff --git a/src/main/resources/assets/glowcase/lang/en_us.json b/src/main/resources/assets/glowcase/lang/en_us.json index 49ff6fc..215dc2d 100644 --- a/src/main/resources/assets/glowcase/lang/en_us.json +++ b/src/main/resources/assets/glowcase/lang/en_us.json @@ -7,7 +7,7 @@ "gui.glowcase.scale": "Scale: %d", "gui.glowcase.alignment": "Alignment: %s", "gui.glowcase.gives_item": "Gives Item: %s", - "gui.glowcase.shadow_type": "Shadow Type", + "gui.glowcase.shadow_type": "Shadow Type: %s", "gui.glowcase.rotation_type": "Rotation Type: %s", "gui.glowcase.show_name": "Show Name: %s", "gui.glowcase.offset": "Offset: %s",