Skip to content

Commit

Permalink
localization
Browse files Browse the repository at this point in the history
  • Loading branch information
HoleFish committed Dec 25, 2024
1 parent dcc51b5 commit 2500319
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
import net.minecraft.util.ChatComponentText;
import net.minecraft.util.EnumChatFormatting;
import net.minecraft.util.MathHelper;
import net.minecraft.util.StatCollector;
import net.minecraftforge.common.util.ForgeDirection;
import net.minecraftforge.fluids.Fluid;
import net.minecraftforge.fluids.FluidStack;
Expand Down Expand Up @@ -939,9 +940,9 @@ public boolean onWireCutterRightClick(ForgeDirection side, ForgeDirection wrench
float aX, float aY, float aZ, ItemStack aTool) {
if (astralArrayAmount != 0) {
if (mMaxProgresstime > 0) {
GTUtility
.sendChatToPlayer(aPlayer, "Can't retrieve Astral Array Fabricators when the machine is working!");
GTUtility.sendChatToPlayer(aPlayer, StatCollector.translateToLocal("eoh.rightclick.wirecutter.1"));
} else {
long originalAmount = astralArrayAmount;
while (astralArrayAmount >= 64) {
if (aPlayer.inventory.getFirstEmptyStack() != -1) {
aPlayer.inventory.addItemStackToInventory(CustomItemList.astralArrayFabricator.get(64));
Expand All @@ -955,6 +956,13 @@ public boolean onWireCutterRightClick(ForgeDirection side, ForgeDirection wrench
.addItemStackToInventory(CustomItemList.astralArrayFabricator.get(astralArrayAmount));
astralArrayAmount = 0;
}
if (originalAmount - astralArrayAmount > 0) {
GTUtility.sendChatToPlayer(
aPlayer,
StatCollector.translateToLocalFormatted(
"eoh.rightclick.wirecutter.2",
GTUtility.formatNumbers(originalAmount - astralArrayAmount)));
}
}
}
return true;
Expand Down
3 changes: 2 additions & 1 deletion src/main/resources/assets/tectech/lang/en_US.lang
Original file line number Diff line number Diff line change
Expand Up @@ -851,7 +851,8 @@ gt.blockcasingsBA0.11.desc.1=Can survive at least one big bang, maybe two...
achievement.gt.blockcasingsBA0.10=Reinforced Temporal Structure Casing
gt.blockcasingsBA0.10.desc.0=Resistant to temporal shearing from time dilation differences.
gt.blockcasingsBA0.10.desc.1=This block can last an eternity without any decay.

eoh.rightclick.wirecutter.1=Can't retrieve Astral Array Fabricators when the machine is working!
eoh.rightclick.wirecutter.2=Retrieved %s Astral Array Fabricators

# Antimatter
gt.blockmachines.antimatterForge.name=Semi-Stable Antimatter Stabilization Sequencer
Expand Down

0 comments on commit 2500319

Please sign in to comment.