RCXcrafter / EmbersRekindled

Port of Embers Rekindled to a minecraft version beyond 1.12.2
MIT License
11 stars 7 forks source link

Death messages from beam deaths do not display correctly. #36

Closed Twisted-Code closed 3 months ago

Twisted-Code commented 4 months ago

It looks like it was supposed to interpolate the player name and cause but failed. image

Twisted-Code commented 4 months ago

Relevant localization key: https://github.com/RCXcrafter/EmbersRekindled/blob/rekindled/src/generated/resources/assets/embers/lang/en_us.json#L173 I noticed that the other keys do not have %1 part. I'm not super familiar with Java string interpolation or how Minecraft localization keys are processed, is there a reason you need to specify the parameter index? Or did you mean to replace one with the other and instead you appended? In the latter case, I think this is simple enough I can propose a PR to close it promptly; if I'm wrong, you can just reject the PR, no hard feelings.

RCXcrafter commented 3 months ago

I'm not sure why this isn't working for you, I use the same formatting codes as all the vanilla death messages and it works just fine for me. Do vanilla death messages work for you? Maybe you have some other mod interfering with death messages.

RCXcrafter commented 3 months ago

I figured out why this was happening, it wasn't clear to me at first that this only happend when you die from the beam cannon.