Skip to content

Commit

Permalink
Update to make use of changes from #1428
Browse files Browse the repository at this point in the history
  • Loading branch information
ApexModder committed Aug 19, 2024
1 parent 7a88555 commit 4cf3a06
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,11 +87,10 @@ private static Component createComponent(MinecraftServer server, @Nullable Serve

private static Component createDimensionComponent(ServerLevel dimension) {
var regName = dimension.dimension().location();
var langKey = regName.toLanguageKey("dimension");
var dimensionTypes = dimension.registryAccess().registryOrThrow(Registries.DIMENSION_TYPE);
var dimensionType = Objects.requireNonNull(dimensionTypes.getKey(dimension.dimensionType()));

return Component.translatableWithFallback(langKey, regName.toString()).withStyle(style -> style
return Component.empty().append(dimension.getDescription()).withStyle(style -> style
.withColor(ChatFormatting.GREEN)
.withHoverEvent(new HoverEvent(
HoverEvent.Action.SHOW_TEXT,
Expand Down
4 changes: 0 additions & 4 deletions src/main/resources/assets/neoforge/lang/en_us.json
Original file line number Diff line number Diff line change
Expand Up @@ -126,10 +126,6 @@
"commands.config.getwithtype": "Config for %s of type %s found at %s",
"commands.config.noconfig": "Config for %s of type %s not found",

"dimension.minecraft.overworld": "Overworld",
"dimension.minecraft.the_nether": "The Nether",
"dimension.minecraft.the_end": "The End",

"neoforge.update.beta.1": "%sWARNING: %sNeoForge Beta",
"neoforge.update.beta.2": "Major issues may arise, verify before reporting.",
"neoforge.update.newversion": "New NeoForge version available: %s",
Expand Down

0 comments on commit 4cf3a06

Please sign in to comment.