Skip to content

Commit

Permalink
Localise bed respawn message (#475)
Browse files Browse the repository at this point in the history
  • Loading branch information
Caedis authored Jan 19, 2025
1 parent b17a5a8 commit 688bbfa
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import net.minecraft.entity.player.EntityPlayerMP;
import net.minecraft.util.ChatComponentText;
import net.minecraft.util.ChunkCoordinates;
import net.minecraft.util.StatCollector;
import net.minecraft.world.World;

import org.spongepowered.asm.mixin.Mixin;
Expand All @@ -28,6 +29,7 @@ public class MixinBlockBed_AlwaysSetsSpawn {

entityPlayerMP.setSpawnChunk(new ChunkCoordinates(x, y, z), false);
// not render over hotbar due to other mixin
entityPlayerMP.addChatComponentMessage(new ChatComponentText("Respawn Point Set"));
entityPlayerMP.addChatComponentMessage(
new ChatComponentText(StatCollector.translateToLocal("hodgepodge.bed_respawn.msg")));
}
}
3 changes: 2 additions & 1 deletion src/main/resources/assets/hodgepodge/lang/en_US.lang
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,5 @@ item.dyePowder.name=Dye
item.skull.name=Skull
item.fish.name=Fish

hodgepodge.soundsmenu.refreshsounds=Refresh Sounds
hodgepodge.soundsmenu.refreshsounds=Refresh Sounds
hodgepodge.bed_respawn.msg=Respawn Set

0 comments on commit 688bbfa

Please sign in to comment.