Skip to content

Commit

Permalink
Merge branch 'master' into roundtwo
Browse files Browse the repository at this point in the history
  • Loading branch information
70000hp committed Sep 18, 2023
2 parents e1be2de + 95a5e54 commit e2a504f
Show file tree
Hide file tree
Showing 79 changed files with 2,678 additions and 88 deletions.
13 changes: 12 additions & 1 deletion changelog
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@
* Industrial smokestack
* An even larger smokestack, matching the size of the coker unit
* Reduced pollution by 90%, as opposed to the brick smokestack's 75%
* Power gauge
* Like the flow gauge pipe for cable networks
* Shows the total amount of power being transferred within the connected network
* Trenchmaster armor
* A new unique set of armor that is currently unobtainable
* Has new traits like faster reloads, a 33% chance of not using up ammo and step-assist

## Changed
* Updated russian localization
Expand All @@ -36,6 +42,8 @@
* Smokestacks now capture fly ash and are now compatible with ashpits
* Industrial smokestacks can also capture fine soot
* Reduced strings required for making coal filters, filters are now also available in tier 2 anvils
* Fireboxes and heating ovens can now be disassembled in tier 2 anvils, yielding most of the resources used for making them
* Signal beacons now only spawn half as often

## Fixed
* Fixed the bomber not spawning if the chunkloading radios is too small
Expand All @@ -48,4 +56,7 @@
* Hopefully fixed issue where the tom impact effects will last even when switching worlds
* Fixed logspam caused by custom machine crafting handler
* Fixed issue with the assemblers and chemplants where recipes with larger input requirements would break the input funnel
* Fixed crash caused by reloading when the ammo item is in the last slot
* Fixed crash caused by reloading when the ammo item is in the last slot
* Power and fluid networks will no longer transfer amounts less or equal than 0, preventing negative values and removing unnecessary operations where nothing would happen anyways
* Fixed bug where damage sources that bypass iframes would deal significantly more damage if the victim has taken a lot of damage prior
* Fixed duplicate balefire shell existing, the one that was usable was not the one that was craftable
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
mod_version=1.0.27
# Empty build number makes a release type
mod_build_number=4711
mod_build_number=4724

credits=HbMinecraft, rodolphito (explosion algorithms), grangerave (explosion algorithms),\
\ Hoboy (textures, models), Doctor17 (russian localization), Drillgon200 (effects, models,\
Expand Down
2 changes: 2 additions & 0 deletions src/main/java/api/hbm/energy/PowerNet.java
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,8 @@ public static void cleanup(List<IEnergyConnector> subscribers) {

public static long fairTransfer(List<IEnergyConnector> subscribers, long power) {

if(power <= 0) return 0;

if(subscribers.isEmpty())
return power;

Expand Down
2 changes: 2 additions & 0 deletions src/main/java/api/hbm/fluid/PipeNet.java
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,8 @@ public long transferFluid(long fill, int pressure) {

public static long fairTransfer(List<IFluidConnector> subList, FluidType type, int pressure, long fill) {

if(fill <= 0) return 0;

List<Long> weight = new ArrayList();
long totalReq = 0;

Expand Down
11 changes: 11 additions & 0 deletions src/main/java/com/hbm/blocks/ModBlocks.java
Original file line number Diff line number Diff line change
Expand Up @@ -785,6 +785,7 @@ public static void mainRegistry()
public static Block red_cable;
public static Block red_cable_classic;
public static Block red_cable_paintable;
public static Block red_cable_gauge;
public static Block red_connector;
public static Block red_pylon;
public static Block red_pylon_large;
Expand Down Expand Up @@ -821,6 +822,9 @@ public static void mainRegistry()
public static Block crane_boxer;
public static Block crane_unboxer;
public static Block crane_splitter;

public static Block drone_waypoint;
public static Block drone_crate;

public static Block fan;

Expand Down Expand Up @@ -1959,6 +1963,7 @@ private static void initializeBlock() {
red_cable = new BlockCable(Material.iron).setBlockName("red_cable").setHardness(5.0F).setResistance(10.0F).setCreativeTab(MainRegistry.machineTab).setBlockTextureName(RefStrings.MODID + ":cable_neo");
red_cable_classic = new BlockCable(Material.iron).setBlockName("red_cable_classic").setHardness(5.0F).setResistance(10.0F).setCreativeTab(MainRegistry.machineTab).setBlockTextureName(RefStrings.MODID + ":red_cable_classic");
red_cable_paintable = new BlockCablePaintable().setBlockName("red_cable_paintable").setHardness(5.0F).setResistance(10.0F).setCreativeTab(MainRegistry.machineTab);
red_cable_gauge = new BlockCableGauge().setBlockName("red_cable_gauge").setHardness(5.0F).setResistance(10.0F).setCreativeTab(MainRegistry.machineTab);
red_connector = new ConnectorRedWire(Material.iron).setBlockName("red_connector").setHardness(5.0F).setResistance(10.0F).setCreativeTab(MainRegistry.machineTab).setBlockTextureName(RefStrings.MODID + ":red_connector");
red_pylon = new PylonRedWire(Material.iron).setBlockName("red_pylon").setHardness(5.0F).setResistance(10.0F).setCreativeTab(MainRegistry.machineTab).setBlockTextureName(RefStrings.MODID + ":red_pylon");
red_pylon_large = new PylonLarge(Material.iron).setBlockName("red_pylon_large").setHardness(5.0F).setResistance(10.0F).setCreativeTab(MainRegistry.machineTab).setBlockTextureName(RefStrings.MODID + ":red_pylon_large");
Expand Down Expand Up @@ -1998,6 +2003,9 @@ private static void initializeBlock() {
fan = new MachineFan().setBlockName("fan").setHardness(5.0F).setResistance(10.0F).setCreativeTab(MainRegistry.machineTab).setBlockTextureName(RefStrings.MODID + ":block_steel");
piston_inserter = new PistonInserter().setBlockName("piston_inserter").setHardness(5.0F).setResistance(10.0F).setCreativeTab(MainRegistry.machineTab).setBlockTextureName(RefStrings.MODID + ":block_steel");

drone_waypoint = new DroneWaypoint().setBlockName("drone_waypoint").setHardness(0.1F).setResistance(10.0F).setCreativeTab(MainRegistry.machineTab).setBlockTextureName(RefStrings.MODID + ":drone_waypoint");
drone_crate = new DroneCrate().setBlockName("drone_crate").setHardness(0.1F).setResistance(10.0F).setCreativeTab(MainRegistry.machineTab);

chain = new BlockChain(Material.iron).setBlockName("dungeon_chain").setHardness(0.25F).setResistance(2.0F).setCreativeTab(MainRegistry.blockTab).setBlockTextureName(RefStrings.MODID + ":chain");

ladder_sturdy = new BlockNTMLadder().setBlockName("ladder_sturdy").setHardness(0.25F).setResistance(2.0F).setCreativeTab(MainRegistry.blockTab).setBlockTextureName(RefStrings.MODID + ":ladder_sturdy");
Expand Down Expand Up @@ -3224,6 +3232,7 @@ private static void registerBlock() {
GameRegistry.registerBlock(red_cable, red_cable.getUnlocalizedName());
GameRegistry.registerBlock(red_cable_classic, red_cable_classic.getUnlocalizedName());
GameRegistry.registerBlock(red_cable_paintable, red_cable_paintable.getUnlocalizedName());
register(red_cable_gauge);
GameRegistry.registerBlock(red_wire_coated, red_wire_coated.getUnlocalizedName());
GameRegistry.registerBlock(red_connector, ItemBlockBase.class, red_connector.getUnlocalizedName());
GameRegistry.registerBlock(red_pylon, ItemBlockBase.class, red_pylon.getUnlocalizedName());
Expand Down Expand Up @@ -3260,6 +3269,8 @@ private static void registerBlock() {
register(conveyor_chute);
register(conveyor_lift);
register(crane_splitter);
register(drone_waypoint);
register(drone_crate);
register(fan);
register(piston_inserter);

Expand Down
3 changes: 2 additions & 1 deletion src/main/java/com/hbm/blocks/machine/BlockHadronCoil.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package com.hbm.blocks.machine;

import java.util.List;
import java.util.Locale;

import com.hbm.blocks.ITooltipProvider;
import com.hbm.render.block.ct.CT;
Expand Down Expand Up @@ -53,6 +54,6 @@ public boolean canConnect(IBlockAccess world, int x, int y, int z, Block block)

@Override
public void addInformation(ItemStack itemstack, EntityPlayer player, List list, boolean bool) {
list.add(I18nUtil.resolveKey("info.coil") + ": " + String.format("%,d", factor));
list.add(I18nUtil.resolveKey("info.coil") + ": " + String.format(Locale.US, "%,d", factor));
}
}
5 changes: 3 additions & 2 deletions src/main/java/com/hbm/blocks/machine/BlockMassStorage.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import java.util.ArrayList;
import java.util.List;
import java.util.Locale;
import java.util.Random;

import com.hbm.blocks.IBlockMulti;
Expand Down Expand Up @@ -265,7 +266,7 @@ public void printHook(Pre event, World world, int x, int y, int z) {
if(full) {

title = storage.type.getDisplayName();
text.add(String.format("%,d", storage.getStockpile()) + " / " + String.format("%,d", storage.getCapacity()));
text.add(String.format(Locale.US, "%,d", storage.getStockpile()) + " / " + String.format(Locale.US, "%,d", storage.getCapacity()));

double percent = (double) storage.getStockpile() / (double) storage.getCapacity();
int charge = (int) Math.floor(percent * 10_000D);
Expand All @@ -286,7 +287,7 @@ public void addInformation(ItemStack stack, EntityPlayer player, List list, bool

if(type != null) {
list.add(EnumChatFormatting.GOLD + type.getDisplayName());
list.add(String.format("%,d", stack.stackTagCompound.getInteger("stack")) + " / " + String.format("%,d", getCapacity(stack.getItemDamage())));
list.add(String.format(Locale.US, "%,d", stack.stackTagCompound.getInteger("stack")) + " / " + String.format(Locale.US, "%,d", getCapacity(stack.getItemDamage())));
}
}

Expand Down
3 changes: 2 additions & 1 deletion src/main/java/com/hbm/blocks/machine/HeaterElectric.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import java.util.ArrayList;
import java.util.List;
import java.util.Locale;

import api.hbm.block.IToolable;
import com.hbm.blocks.BlockDummyable;
Expand Down Expand Up @@ -75,7 +76,7 @@ public void printHook(Pre event, World world, int x, int y, int z) {
TileEntityHeaterElectric heater = (TileEntityHeaterElectric) te;

List<String> text = new ArrayList();
text.add(String.format("%,d", heater.heatEnergy) + " TU");
text.add(String.format(Locale.US, "%,d", heater.heatEnergy) + " TU");
text.add(EnumChatFormatting.GREEN + "-> " + EnumChatFormatting.RESET + heater.getConsumption() + " HE/t");
text.add(EnumChatFormatting.RED + "<- " + EnumChatFormatting.RESET + heater.getHeatGen() + " TU/t");

Expand Down
3 changes: 2 additions & 1 deletion src/main/java/com/hbm/blocks/machine/HeaterHeatex.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import java.util.ArrayList;
import java.util.List;
import java.util.Locale;

import com.hbm.blocks.BlockDummyable;
import com.hbm.blocks.ILookOverlay;
Expand Down Expand Up @@ -63,7 +64,7 @@ public void printHook(Pre event, World world, int x, int y, int z) {
TileEntityHeaterHeatex heater = (TileEntityHeaterHeatex) te;

List<String> text = new ArrayList();
text.add(String.format("%,d", heater.heatEnergy) + " TU");
text.add(String.format(Locale.US, "%,d", heater.heatEnergy) + " TU");
ILookOverlay.printGeneric(event, I18nUtil.resolveKey(getUnlocalizedName() + ".name"), 0xffff00, 0x404000, text);
}

Expand Down
3 changes: 2 additions & 1 deletion src/main/java/com/hbm/blocks/machine/HeaterOilburner.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import java.util.ArrayList;
import java.util.List;
import java.util.Locale;

import com.hbm.blocks.BlockDummyable;
import com.hbm.blocks.ILookOverlay;
Expand Down Expand Up @@ -97,7 +98,7 @@ public void printHook(Pre event, World world, int x, int y, int z) {
FluidType type = heater.tank.getTankType();
if(type.hasTrait(FT_Flammable.class)) {
int heat = (int)(type.getTrait(FT_Flammable.class).getHeatEnergy() * heater.setting / 1000);
text.add(EnumChatFormatting.RED + "<- " + EnumChatFormatting.RESET + String.format("%,d", heat) + " TU/t");
text.add(EnumChatFormatting.RED + "<- " + EnumChatFormatting.RESET + String.format(Locale.US, "%,d", heat) + " TU/t");
}

ILookOverlay.printGeneric(event, I18nUtil.resolveKey(getUnlocalizedName() + ".name"), 0xffff00, 0x404000, text);
Expand Down
6 changes: 3 additions & 3 deletions src/main/java/com/hbm/blocks/machine/MachineHeatBoiler.java
Original file line number Diff line number Diff line change
Expand Up @@ -175,9 +175,9 @@ public void printHook(Pre event, World world, int x, int y, int z) {
if(boiler.hasExploded) return;

List<String> text = new ArrayList();
text.add(String.format("%,d", boiler.heat) + "TU");
text.add(EnumChatFormatting.GREEN + "-> " + EnumChatFormatting.RESET + I18nUtil.resolveKey(boiler.tanks[0].getTankType().getUnlocalizedName()) + ": " + String.format("%,d", boiler.tanks[0].getFill()) + " / " + String.format("%,d", boiler.tanks[0].getMaxFill()) + "mB");
text.add(EnumChatFormatting.RED + "<- " + EnumChatFormatting.RESET + I18nUtil.resolveKey(boiler.tanks[1].getTankType().getUnlocalizedName()) + ": " + String.format("%,d", boiler.tanks[1].getFill()) + " / " + String.format("%,d", boiler.tanks[1].getMaxFill()) + "mB");
text.add(String.format(Locale.US, "%,d", boiler.heat) + "TU");
text.add(EnumChatFormatting.GREEN + "-> " + EnumChatFormatting.RESET + I18nUtil.resolveKey(boiler.tanks[0].getTankType().getUnlocalizedName()) + ": " + String.format(Locale.US, "%,d", boiler.tanks[0].getFill()) + " / " + String.format(Locale.US, "%,d", boiler.tanks[0].getMaxFill()) + "mB");
text.add(EnumChatFormatting.RED + "<- " + EnumChatFormatting.RESET + I18nUtil.resolveKey(boiler.tanks[1].getTankType().getUnlocalizedName()) + ": " + String.format(Locale.US, "%,d", boiler.tanks[1].getFill()) + " / " + String.format(Locale.US, "%,d", boiler.tanks[1].getMaxFill()) + "mB");

ILookOverlay.printGeneric(event, I18nUtil.resolveKey(getUnlocalizedName() + ".name"), 0xffff00, 0x404000, text);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,9 @@ public void printHook(Pre event, World world, int x, int y, int z) {
TileEntityHeatBoilerIndustrial boiler = (TileEntityHeatBoilerIndustrial) te;

List<String> text = new ArrayList();
text.add(String.format("%,d", boiler.heat) + "TU");
text.add(EnumChatFormatting.GREEN + "-> " + EnumChatFormatting.RESET + I18nUtil.resolveKey(boiler.tanks[0].getTankType().getUnlocalizedName()) + ": " + String.format("%,d", boiler.tanks[0].getFill()) + " / " + String.format("%,d", boiler.tanks[0].getMaxFill()) + "mB");
text.add(EnumChatFormatting.RED + "<- " + EnumChatFormatting.RESET + I18nUtil.resolveKey(boiler.tanks[1].getTankType().getUnlocalizedName()) + ": " + String.format("%,d", boiler.tanks[1].getFill()) + " / " + String.format("%,d", boiler.tanks[1].getMaxFill()) + "mB");
text.add(String.format(Locale.US, "%,d", boiler.heat) + "TU");
text.add(EnumChatFormatting.GREEN + "-> " + EnumChatFormatting.RESET + I18nUtil.resolveKey(boiler.tanks[0].getTankType().getUnlocalizedName()) + ": " + String.format(Locale.US, "%,d", boiler.tanks[0].getFill()) + " / " + String.format(Locale.US, "%,d", boiler.tanks[0].getMaxFill()) + "mB");
text.add(EnumChatFormatting.RED + "<- " + EnumChatFormatting.RESET + I18nUtil.resolveKey(boiler.tanks[1].getTankType().getUnlocalizedName()) + ": " + String.format(Locale.US, "%,d", boiler.tanks[1].getFill()) + " / " + String.format(Locale.US, "%,d", boiler.tanks[1].getMaxFill()) + "mB");

ILookOverlay.printGeneric(event, I18nUtil.resolveKey(getUnlocalizedName() + ".name"), 0xffff00, 0x404000, text);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ public void printHook(Pre event, World world, int x, int y, int z) {
TileEntityMachineHephaestus heatex = (TileEntityMachineHephaestus) te;

List<String> text = new ArrayList();
text.add(String.format("%,d", heatex.bufferedHeat) + " TU");
text.add(String.format(Locale.US, "%,d", heatex.bufferedHeat) + " TU");

for(int i = 0; i < heatex.getAllTanks().length; i++) {
FluidTank tank = heatex.getAllTanks()[i];
Expand Down
11 changes: 6 additions & 5 deletions src/main/java/com/hbm/blocks/machine/MachinePump.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import java.util.ArrayList;
import java.util.List;
import java.util.Locale;

import com.hbm.blocks.BlockDummyable;
import com.hbm.blocks.ILookOverlay;
Expand Down Expand Up @@ -83,15 +84,15 @@ public void printHook(Pre event, World world, int x, int y, int z) {

if(te instanceof TileEntityMachinePumpSteam) {
TileEntityMachinePumpSteam pump = (TileEntityMachinePumpSteam) te;
text.add(EnumChatFormatting.GREEN + "-> " + EnumChatFormatting.RESET + I18nUtil.resolveKey(pump.steam.getTankType().getUnlocalizedName()) + ": " + String.format("%,d", pump.steam.getFill()) + " / " + String.format("%,d", pump.steam.getMaxFill()) + "mB");
text.add(EnumChatFormatting.RED + "<- " + EnumChatFormatting.RESET + I18nUtil.resolveKey(pump.lps.getTankType().getUnlocalizedName()) + ": " + String.format("%,d", pump.lps.getFill()) + " / " + String.format("%,d", pump.lps.getMaxFill()) + "mB");
text.add(EnumChatFormatting.RED + "<- " + EnumChatFormatting.RESET + I18nUtil.resolveKey(pump.water.getTankType().getUnlocalizedName()) + ": " + String.format("%,d", pump.water.getFill()) + " / " + String.format("%,d", pump.water.getMaxFill()) + "mB");
text.add(EnumChatFormatting.GREEN + "-> " + EnumChatFormatting.RESET + I18nUtil.resolveKey(pump.steam.getTankType().getUnlocalizedName()) + ": " + String.format(Locale.US, "%,d", pump.steam.getFill()) + " / " + String.format(Locale.US, "%,d", pump.steam.getMaxFill()) + "mB");
text.add(EnumChatFormatting.RED + "<- " + EnumChatFormatting.RESET + I18nUtil.resolveKey(pump.lps.getTankType().getUnlocalizedName()) + ": " + String.format(Locale.US, "%,d", pump.lps.getFill()) + " / " + String.format(Locale.US, "%,d", pump.lps.getMaxFill()) + "mB");
text.add(EnumChatFormatting.RED + "<- " + EnumChatFormatting.RESET + I18nUtil.resolveKey(pump.water.getTankType().getUnlocalizedName()) + ": " + String.format(Locale.US, "%,d", pump.water.getFill()) + " / " + String.format(Locale.US, "%,d", pump.water.getMaxFill()) + "mB");
}

if(te instanceof TileEntityMachinePumpElectric) {
TileEntityMachinePumpElectric pump = (TileEntityMachinePumpElectric) te;
text.add(EnumChatFormatting.GREEN + "-> " + EnumChatFormatting.RESET + String.format("%,d", pump.power) + " / " + String.format("%,d", pump.maxPower) + "HE");
text.add(EnumChatFormatting.RED + "<- " + EnumChatFormatting.RESET + I18nUtil.resolveKey(pump.water.getTankType().getUnlocalizedName()) + ": " + String.format("%,d", pump.water.getFill()) + " / " + String.format("%,d", pump.water.getMaxFill()) + "mB");
text.add(EnumChatFormatting.GREEN + "-> " + EnumChatFormatting.RESET + String.format(Locale.US, "%,d", pump.power) + " / " + String.format(Locale.US, "%,d", pump.maxPower) + "HE");
text.add(EnumChatFormatting.RED + "<- " + EnumChatFormatting.RESET + I18nUtil.resolveKey(pump.water.getTankType().getUnlocalizedName()) + ": " + String.format(Locale.US, "%,d", pump.water.getFill()) + " / " + String.format(Locale.US, "%,d", pump.water.getMaxFill()) + "mB");
}

if(pos[1] > 70) {
Expand Down
5 changes: 3 additions & 2 deletions src/main/java/com/hbm/blocks/machine/MachineSteamEngine.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import java.util.ArrayList;
import java.util.List;
import java.util.Locale;

import com.hbm.blocks.BlockDummyable;
import com.hbm.blocks.ILookOverlay;
Expand Down Expand Up @@ -72,8 +73,8 @@ public void printHook(Pre event, World world, int x, int y, int z) {
TileEntitySteamEngine engine = (TileEntitySteamEngine) te;

List<String> text = new ArrayList();
text.add(EnumChatFormatting.GREEN + "-> " + EnumChatFormatting.RESET + I18nUtil.resolveKey(engine.tanks[0].getTankType().getUnlocalizedName()) + ": " + String.format("%,d", engine.tanks[0].getFill()) + " / " + String.format("%,d", engine.tanks[0].getMaxFill()) + "mB");
text.add(EnumChatFormatting.RED + "<- " + EnumChatFormatting.RESET + I18nUtil.resolveKey(engine.tanks[1].getTankType().getUnlocalizedName()) + ": " + String.format("%,d", engine.tanks[1].getFill()) + " / " + String.format("%,d", engine.tanks[1].getMaxFill()) + "mB");
text.add(EnumChatFormatting.GREEN + "-> " + EnumChatFormatting.RESET + I18nUtil.resolveKey(engine.tanks[0].getTankType().getUnlocalizedName()) + ": " + String.format(Locale.US, "%,d", engine.tanks[0].getFill()) + " / " + String.format(Locale.US, "%,d", engine.tanks[0].getMaxFill()) + "mB");
text.add(EnumChatFormatting.RED + "<- " + EnumChatFormatting.RESET + I18nUtil.resolveKey(engine.tanks[1].getTankType().getUnlocalizedName()) + ": " + String.format(Locale.US, "%,d", engine.tanks[1].getFill()) + " / " + String.format(Locale.US, "%,d", engine.tanks[1].getMaxFill()) + "mB");

ILookOverlay.printGeneric(event, I18nUtil.resolveKey(getUnlocalizedName() + ".name"), 0xffff00, 0x404000, text);
}
Expand Down
3 changes: 2 additions & 1 deletion src/main/java/com/hbm/blocks/machine/MachineTeleporter.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import java.util.ArrayList;
import java.util.List;
import java.util.Locale;

import com.hbm.blocks.ILookOverlay;
import com.hbm.lib.RefStrings;
Expand Down Expand Up @@ -61,7 +62,7 @@ public void printHook(Pre event, World world, int x, int y, int z) {
if(tele.targetY == -1) {
text.add(EnumChatFormatting.RED + "No destination set!");
} else {
text.add((tele.power >= tele.consumption ? EnumChatFormatting.GREEN : EnumChatFormatting.RED) + String.format("%,d", tele.power) + " / " + String.format("%,d", tele.maxPower));
text.add((tele.power >= tele.consumption ? EnumChatFormatting.GREEN : EnumChatFormatting.RED) + String.format(Locale.US, "%,d", tele.power) + " / " + String.format(Locale.US, "%,d", tele.maxPower));
text.add("Destination: " + tele.targetX + " / " + tele.targetY + " / " + tele.targetZ + " (D: " + tele.targetDim + ")");
}

Expand Down
Loading

0 comments on commit e2a504f

Please sign in to comment.