Fix #1796
This commit is contained in:
parent
a30e86b4cb
commit
33556c8262
3 changed files with 3 additions and 1269 deletions
|
@ -45,6 +45,7 @@ import net.minecraft.util.math.BlockPos;
|
|||
import net.minecraft.util.registry.Registry;
|
||||
import net.minecraft.world.IWorld;
|
||||
import org.apache.commons.lang3.Validate;
|
||||
import org.apache.commons.lang3.text.WordUtils;
|
||||
import reborncore.common.fluid.FluidUtil;
|
||||
import reborncore.common.fluid.container.ItemFluidInfo;
|
||||
import reborncore.common.util.ItemNBTHelper;
|
||||
|
@ -81,7 +82,7 @@ public class ItemDynamicCell extends Item implements ItemFluidInfo {
|
|||
Fluid fluid = getFluid(itemStack);
|
||||
if(fluid != Fluids.EMPTY){
|
||||
//TODO use translation keys for fluid and the cell https://fabric.asie.pl/wiki/tutorial:lang?s[]=translation might be useful
|
||||
return new LiteralText(FluidUtil.getFluidName(fluid) + " Cell");
|
||||
return new LiteralText(WordUtils.capitalizeFully(FluidUtil.getFluidName(fluid).replaceAll("_", " ")) + " Cell");
|
||||
}
|
||||
return super.getName(itemStack);
|
||||
}
|
||||
|
|
|
@ -663,7 +663,7 @@
|
|||
"_comment26": "Fluid buckets",
|
||||
"item.techreborn.beryllium_bucket": "Beryllium",
|
||||
"item.techreborn.calcium_bucket": "Calcium",
|
||||
"item.techreborn.calciumcarbonate_bucket": "Calcium Carbonate",
|
||||
"item.techreborn.calcium_carbonate_bucket": "Calcium Carbonate",
|
||||
"item.techreborn.carbon_bucket": "Carbon",
|
||||
"item.techreborn.carbon_fiber_bucket": "Carbon Fiber",
|
||||
"item.techreborn.chlorite_bucket": "Chlorite",
|
||||
|
|
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue