mirror of
https://github.com/HbmMods/Hbm-s-Nuclear-Tech-GIT.git
synced 2026-08-10 17:55:44 +00:00
Merge pull request #3121 from Deeplerg/master
Fix I18N server side call
This commit is contained in:
commit
7698dab7b8
@ -35,9 +35,31 @@ public class ItemPollutionDetector extends Item {
|
|||||||
heavymetal = ((int) (heavymetal * 100)) / 100F;
|
heavymetal = ((int) (heavymetal * 100)) / 100F;
|
||||||
//fallout = ((int) (fallout * 100)) / 100F;
|
//fallout = ((int) (fallout * 100)) / 100F;
|
||||||
|
|
||||||
PacketDispatcher.wrapper.sendTo(new PlayerInformPacket(ChatBuilder.start(I18nUtil.resolveKey("pollution.soot") + ": " + soot).color(EnumChatFormatting.YELLOW).flush(), 100, 4000), (EntityPlayerMP) entity);
|
PacketDispatcher.wrapper.sendTo(
|
||||||
PacketDispatcher.wrapper.sendTo(new PlayerInformPacket(ChatBuilder.start(I18nUtil.resolveKey("pollution.poison") + ": " + poison).color(EnumChatFormatting.YELLOW).flush(), 101, 4000), (EntityPlayerMP) entity);
|
new PlayerInformPacket(
|
||||||
PacketDispatcher.wrapper.sendTo(new PlayerInformPacket(ChatBuilder.start(I18nUtil.resolveKey("pollution.heavymetal") + ": " + heavymetal).color(EnumChatFormatting.YELLOW).flush(), 102, 4000), (EntityPlayerMP) entity);
|
ChatBuilder.startTranslation("pollution.soot")
|
||||||
|
.color(EnumChatFormatting.YELLOW)
|
||||||
|
.next(": " + soot)
|
||||||
|
.color(EnumChatFormatting.YELLOW)
|
||||||
|
.flush(), 100, 4000),
|
||||||
|
(EntityPlayerMP) entity);
|
||||||
|
PacketDispatcher.wrapper.sendTo(
|
||||||
|
new PlayerInformPacket(
|
||||||
|
ChatBuilder.startTranslation("pollution.poison")
|
||||||
|
.color(EnumChatFormatting.YELLOW)
|
||||||
|
.next(": " + poison)
|
||||||
|
.color(EnumChatFormatting.YELLOW)
|
||||||
|
.flush(), 101, 4000),
|
||||||
|
(EntityPlayerMP) entity);
|
||||||
|
PacketDispatcher.wrapper.sendTo(
|
||||||
|
new PlayerInformPacket(
|
||||||
|
ChatBuilder.startTranslation("pollution.heavymetal")
|
||||||
|
.color(EnumChatFormatting.YELLOW)
|
||||||
|
.next(": " + heavymetal)
|
||||||
|
.color(EnumChatFormatting.YELLOW)
|
||||||
|
.flush(), 102, 4000),
|
||||||
|
(EntityPlayerMP) entity);
|
||||||
|
|
||||||
//PacketDispatcher.wrapper.sendTo(new PlayerInformPacket(ChatBuilder.start("Fallout: " + fallout).color(EnumChatFormatting.YELLOW).flush(), 103, 4000), (EntityPlayerMP) entity);
|
//PacketDispatcher.wrapper.sendTo(new PlayerInformPacket(ChatBuilder.start("Fallout: " + fallout).color(EnumChatFormatting.YELLOW).flush(), 103, 4000), (EntityPlayerMP) entity);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user