dice language fix

This commit is contained in:
Andrew-71 2023-08-04 21:56:10 +03:00
parent 0b6d54f614
commit ecd4981dd1
2 changed files with 2 additions and 1 deletions

View file

@ -26,7 +26,7 @@ public class DiceItem extends Item {
world.playSound((PlayerEntity)null, user.getX(), user.getY(), user.getZ(), NSE_Items.DICE_SOUND, SoundCategory.NEUTRAL, 0.5F, 0.4F / (world.getRandom().nextFloat() * 0.4F + 0.8F));
output.append(NewSoviet.RANDOM.nextBetween(1, 6) + ", ");
}
user.sendMessage(Text.translatable("item.new_soviet.dice.thrown").append(" " + output.subSequence(0, output.length() - 2)));
user.sendMessage(Text.translatable(itemStack.getCount() == 1 ? "item.new_soviet.dice.thrown" : "item.new_soviet.dice.thrown_multiple").append(" " + output.subSequence(0, output.length() - 2)));
}
user.incrementStat(Stats.USED.getOrCreateStat(this));

View file

@ -130,6 +130,7 @@
"block.new_soviet.siren": "Siren",
"item.new_soviet.dice": "Dice",
"item.new_soviet.dice.thrown": "Dice was thrown with result:",
"item.new_soviet.dice.thrown_multiple": "Dice were thrown with result:",
"subtitles.new_soviet.dice_throw": "Dice thrown",
"block.new_soviet.landmine": "AP Landmine"
}