mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-22 12:59:41 +00:00
localise normal/push/pull/none mode on sided pipes (incl Italian translation)
This commit is contained in:
1 parent
58c80cf150
commit
2f8f71862c
3 files changed
+16
-1
No files matched your search
@@ -28,6 +28,7 @@ import mekanism.common.util.CapabilityUtils;
|
||||
import mekanism.common.util.MekanismUtils;
|
||||
import mekanism.common.util.MultipartUtils;
|
||||
import mekanism.common.util.MultipartUtils.AdvancedRayTraceResult;
|
||||
import mekanism.common.util.TextComponentGroup;
|
||||
import net.minecraft.block.state.IBlockState;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
@@ -609,7 +610,7 @@ public abstract class TileEntitySidedPipe extends TileEntity implements ITileNet
|
||||
sendDesc = true;
|
||||
|
||||
onModeChange(EnumFacing.getFront(hitSide.ordinal()));
|
||||
player.sendMessage(new TextComponentString("Connection type changed to " + connectionTypes[hitSide.ordinal()].toString()));
|
||||
player.sendMessage(new TextComponentGroup().translation("tooltip.configurator.modeChange").string(" ").translation(connectionTypes[hitSide.ordinal()].translationKey()));
|
||||
|
||||
return EnumActionResult.SUCCESS;
|
||||
}
|
||||
@@ -748,5 +749,9 @@ public abstract class TileEntitySidedPipe extends TileEntity implements ITileNet
|
||||
{
|
||||
return name().toLowerCase();
|
||||
}
|
||||
|
||||
public String translationKey(){
|
||||
return "mekanism.pipe.connectiontype."+getName();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user