Fix #2847 Allowing values larger than Integer.MAX_VALUE. Thanks to SimonFlapse
* Fix #2847 Allowing values larger than Integer.MAX_VALUE * Allowed the GUI to display `Long` numbers to fix overflow values * Added missing Death Messages from stepping on the fusion reactor * Fusion Control using TranslatableText * I've converted LiteralText to TranslatableText
This commit is contained in:
parent
3f28d3903f
commit
0f9512efc5
5 changed files with 22 additions and 16 deletions
|
@ -564,14 +564,14 @@ public class GuiBuilder {
|
|||
* @param gui {@link GuiBase} The GUI to draw on
|
||||
* @param x {@code int} Top left corner where to place energy bar
|
||||
* @param y {@code int} Top left corner where to place energy bar
|
||||
* @param energyStored {@code int} Current amount of energy
|
||||
* @param maxEnergyStored {@code int} Maximum amount of energy
|
||||
* @param energyStored {@code long} Current amount of energy
|
||||
* @param maxEnergyStored {@code long} Maximum amount of energy
|
||||
* @param mouseX {@code int} Mouse cursor position to check for tooltip
|
||||
* @param mouseY {@code int} Mouse cursor position to check for tooltip
|
||||
* @param buttonID {@code int} Button ID used to switch energy systems
|
||||
* @param layer {@link GuiBase.Layer} The layer to draw on
|
||||
*/
|
||||
public void drawMultiEnergyBar(MatrixStack matrixStack, GuiBase<?> gui, int x, int y, int energyStored, int maxEnergyStored, int mouseX,
|
||||
public void drawMultiEnergyBar(MatrixStack matrixStack, GuiBase<?> gui, int x, int y, long energyStored, long maxEnergyStored, int mouseX,
|
||||
int mouseY, int buttonID, GuiBase.Layer layer) {
|
||||
if (gui.hideGuiElements()) return;
|
||||
if (layer == GuiBase.Layer.BACKGROUND) {
|
||||
|
|
|
@ -42,7 +42,7 @@ public class PowerSystem {
|
|||
}
|
||||
|
||||
public static String getLocalizedPowerNoSuffix(double power) {
|
||||
return getRoundedString((int) power, "", true);
|
||||
return getRoundedString(power, "", true);
|
||||
}
|
||||
|
||||
public static String getLocalizedPowerNoFormat(double power){
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue