From a1b455ea32d536c1e498852c7de9ebff71fc90ac Mon Sep 17 00:00:00 2001 From: Avalon Date: Fri, 5 Jun 2026 10:13:58 -0400 Subject: [PATCH 01/15] #582 fix Changed list to array. --- .../immersiveintelligence/common/world/BiomeWasteland.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/pl/pabilo8/immersiveintelligence/common/world/BiomeWasteland.java b/src/main/java/pl/pabilo8/immersiveintelligence/common/world/BiomeWasteland.java index d6989127b..12a0c4195 100644 --- a/src/main/java/pl/pabilo8/immersiveintelligence/common/world/BiomeWasteland.java +++ b/src/main/java/pl/pabilo8/immersiveintelligence/common/world/BiomeWasteland.java @@ -5,6 +5,7 @@ import net.minecraft.world.biome.Biome; import pl.pabilo8.immersiveintelligence.ImmersiveIntelligence; +import java.util.ArrayList; import java.util.Collections; import java.util.List; @@ -47,6 +48,6 @@ public float getSpawningChance() @Override public List getSpawnableList(EnumCreatureType creatureType) { - return Collections.emptyList(); + return new ArrayList<>(); } } From 8af49c0fcdc04686b40fa404270e499d4424f8e7 Mon Sep 17 00:00:00 2001 From: Avalon Date: Fri, 5 Jun 2026 10:36:11 -0400 Subject: [PATCH 02/15] #581 fix Code skipped non selectable entries/ variables that have already been set, causing the grid for selection to mismatch the corrosponding letters. --- .../collection/DecoScrolledCollection.java | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/src/main/java/pl/pabilo8/immersiveintelligence/client/gui/deco/component/collection/DecoScrolledCollection.java b/src/main/java/pl/pabilo8/immersiveintelligence/client/gui/deco/component/collection/DecoScrolledCollection.java index 4dda801d2..397001c8c 100644 --- a/src/main/java/pl/pabilo8/immersiveintelligence/client/gui/deco/component/collection/DecoScrolledCollection.java +++ b/src/main/java/pl/pabilo8/immersiveintelligence/client/gui/deco/component/collection/DecoScrolledCollection.java @@ -391,20 +391,22 @@ protected Tuple getClickedEntryIndex(int xx, int yy, int mouse //Iterate over all entries for(T entry : entries) { - //Skip non-selectable (clickable) entries - if(!display.isSelectable(entry)) - continue; + //Measure element height for layout for all entries int elementHeight = display.displayElement(entry, entryMaxWidth, fontRenderer, true); //Check if the mouse is over the current entry if(IIMath.isPointInRectangle(xx+(currentColumn*entryMaxWidth), yy+drawOffset, xx+(currentColumn*entryMaxWidth)+entryMaxWidth, - yy+drawOffset+display.displayElement(entry, entryMaxWidth, fontRenderer, true), + yy+drawOffset+elementHeight, mouseX, mouseY)) - return new Tuple<>( - this.entries.indexOf(entry), - yy+drawOffset - ); + { + //Only return selectable entries + if(display.isSelectable(entry)) + return new Tuple<>( + this.entries.indexOf(entry), + yy+drawOffset + ); + } currentColumn++; //There can be multiple entries in one row From 9faff9ec118daa8a8d3ca42a39db864773391742 Mon Sep 17 00:00:00 2001 From: Avalon Date: Tue, 23 Jun 2026 08:58:29 -0400 Subject: [PATCH 03/15] #614 fix --- .../ie_manual/en_us/ii_logistics/logistics.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/resources/assets/immersiveintelligence/ie_manual/en_us/ii_logistics/logistics.md b/src/main/resources/assets/immersiveintelligence/ie_manual/en_us/ii_logistics/logistics.md index 26be582e0..adb4b5734 100644 --- a/src/main/resources/assets/immersiveintelligence/ie_manual/en_us/ii_logistics/logistics.md +++ b/src/main/resources/assets/immersiveintelligence/ie_manual/en_us/ii_logistics/logistics.md @@ -2,5 +2,5 @@ Logistics Logi, bmats ASAP! # intro -Logistics is a unique branch of engineering focused on [storing, delivering and managing] the [transfer of goods.] A good logistic system consists of a warehouse for storage and nearby production for quick manufacturing. +Logistics is a unique branch of engineering focused on [storing, delivering and managing] the [transfer of goods.] A good logistics system consists of a warehouse for storage and nearby production for quick manufacturing. With the newest electronic technology, and some old [rotary](rotary_power.md) [powered machines](skycrate_system.md), creating a good delivery system has never been easier. \ No newline at end of file From e2af52684fc9a1519fb04b4acaa94d1e7a16ea61 Mon Sep 17 00:00:00 2001 From: Avalon Date: Tue, 23 Jun 2026 09:00:01 -0400 Subject: [PATCH 04/15] #615 fix --- .../ie_manual/en_us/ii_logistics/packer.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/resources/assets/immersiveintelligence/ie_manual/en_us/ii_logistics/packer.md b/src/main/resources/assets/immersiveintelligence/ie_manual/en_us/ii_logistics/packer.md index 5ef3ad429..cd513cd22 100644 --- a/src/main/resources/assets/immersiveintelligence/ie_manual/en_us/ii_logistics/packer.md +++ b/src/main/resources/assets/immersiveintelligence/ie_manual/en_us/ii_logistics/packer.md @@ -7,8 +7,8 @@ The Packer is a machine used to batch load items into containers, such as crates To form it, use a [hammer](introduction#introductionHammer) on the [vertical conveyor]. # details By default, the packer offers 54 input storage slots for items. They can be inserted through a single conveyor on the rear of the machine. -To operation the machine, it requires electricity and a container to be provided on the 3 block long conveyor. -For packing orders, the machine uses a [Task System](task_system.md). Tasks can be added, removed and tweaked through its interface, or the [data system](data_main.md). +To operate the machine, it requires electricity and a container to be provided on the 3 block long conveyor. +For packing the orders, the machine uses a [Task System](task_system.md). Tasks can be added, removed and tweaked through its interface using the [data system](data_main.md). # details_2 The ["Pack"] task is used to load items into the provided container. By default, the packer can take any item (the * symbol) and the maximum possible amount of it. This can be changed by selecting a different mode. You can choose between taking in a select number of inventory slots, or number of items. The amount can be specified in the interface, in the input field below. From 66b973a943f00e3e3c8526949e18b08c2140711c Mon Sep 17 00:00:00 2001 From: Avalon Date: Tue, 23 Jun 2026 09:02:04 -0400 Subject: [PATCH 05/15] #610 fix --- .../ie_manual/en_us/ii_data/precision_assembler.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/resources/assets/immersiveintelligence/ie_manual/en_us/ii_data/precision_assembler.md b/src/main/resources/assets/immersiveintelligence/ie_manual/en_us/ii_data/precision_assembler.md index 2eacc192d..fae011c6d 100644 --- a/src/main/resources/assets/immersiveintelligence/ie_manual/en_us/ii_data/precision_assembler.md +++ b/src/main/resources/assets/immersiveintelligence/ie_manual/en_us/ii_data/precision_assembler.md @@ -16,5 +16,5 @@ Just like an [engineer follows a blueprint during work](blueprints), the **Preci |[crafting]{source:"assembly_scheme"}|
The [scheme] can be installed through the user interface by placing it in the middle slot. # tools -Depending on the scheme the manufacturing process requires different tools, these tools ware down over time and will need replacement. +Depending on the scheme the manufacturing process requires different tools, these tools wear down over time and will need replacement. |[crafting]{source:"precision_tools"}| From 0c547bc3f48648adac6ff6d88101ae94e387e4b2 Mon Sep 17 00:00:00 2001 From: Avalon Date: Tue, 23 Jun 2026 15:40:19 -0400 Subject: [PATCH 06/15] #591 fix --- .../common/item/armor/ItemIILightEngineerBoots.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/main/java/pl/pabilo8/immersiveintelligence/common/item/armor/ItemIILightEngineerBoots.java b/src/main/java/pl/pabilo8/immersiveintelligence/common/item/armor/ItemIILightEngineerBoots.java index eb6c10e7d..e40b4f221 100644 --- a/src/main/java/pl/pabilo8/immersiveintelligence/common/item/armor/ItemIILightEngineerBoots.java +++ b/src/main/java/pl/pabilo8/immersiveintelligence/common/item/armor/ItemIILightEngineerBoots.java @@ -27,6 +27,7 @@ import javax.annotation.Nullable; import java.util.List; import java.util.Map; +import java.util.UUID; /** * @author Pabilo8 (pabilo@iiteam.net) @@ -35,6 +36,9 @@ @IIItemProperties(category = IICategory.WARFARE) public class ItemIILightEngineerBoots extends ItemIILightEngineerArmorBase implements IElectricEquipment { + // Unique UUIDs for attribute modifiers to avoid access conflicts + private static final UUID RACKETS_MODIFIER_UUID = UUID.fromString("C8E5F2A1-7D9C-4F6A-8E3B-A4C7D2E8F9B1"); + public ItemIILightEngineerBoots() { super(EntityEquipmentSlot.FEET, "LIGHT_ENGINEER_BOOTS"); @@ -69,10 +73,9 @@ public Multimap getAttributeModifiers(@Nonnull Entity if(equipmentSlot==this.armorType) { - if(ItemNBTHelper.hasKey(stack, "flippers")) multimap.put(EntityLivingBase.SWIM_SPEED.getName(), new AttributeModifier(ARMOR_MODIFIERS[equipmentSlot.getIndex()], "Flippers", 4, 2)); if(ItemNBTHelper.hasKey(stack, "rackets")) - multimap.put(SharedMonsterAttributes.MOVEMENT_SPEED.getName(), new AttributeModifier(ARMOR_MODIFIERS[equipmentSlot.getIndex()], "Rackets", 0.5, 1)); + multimap.put(SharedMonsterAttributes.MOVEMENT_SPEED.getName(), new AttributeModifier(RACKETS_MODIFIER_UUID, "Rackets", 0.5, 1)); //if(getUpgrades(stack).hasKey("")) //multimap.put(SharedMonsterAttributes.MOVEMENT_SPEED.getName(), new AttributeModifier(ARMOR_MODIFIERS[equipmentSlot.getIndex()], "Power Armor Movement Speed Debuff", -.03, 1)); //multimap.put(SharedMonsterAttributes.MOVEMENT_SPEED.getName(), new AttributeModifier(ARMOR_MODIFIERS[equipmentSlot.getIndex()], "Power Armor Movement Speed Debuff", -.03, 1)); From 1193b41ce1f17e1dbec65bc5ac77dde03bd84675 Mon Sep 17 00:00:00 2001 From: Avalon Date: Thu, 25 Jun 2026 14:04:50 -0400 Subject: [PATCH 07/15] #627 fix --- .../common/item/tools/ItemIIElectricHammer.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/pl/pabilo8/immersiveintelligence/common/item/tools/ItemIIElectricHammer.java b/src/main/java/pl/pabilo8/immersiveintelligence/common/item/tools/ItemIIElectricHammer.java index 65dd5a210..0de13d274 100644 --- a/src/main/java/pl/pabilo8/immersiveintelligence/common/item/tools/ItemIIElectricHammer.java +++ b/src/main/java/pl/pabilo8/immersiveintelligence/common/item/tools/ItemIIElectricHammer.java @@ -185,6 +185,10 @@ public EnumActionResult onItemUseFirst(EntityPlayer player, World world, BlockPo continue; if(mb.createStructure(world, pos, side, player)) { + //Consume energy from the electric hammer when forming a multiblock + if(stack.hasCapability(CapabilityEnergy.ENERGY, null) && !IIItemUtils.canConstructFreeOfCharge(player)) + stack.getCapability(CapabilityEnergy.ENERGY, null).extractEnergy(Tools.electricHammerEnergyPerUseConstruction, false); + if(player instanceof EntityPlayerMP) IEAdvancements.TRIGGER_MULTIBLOCK.trigger((EntityPlayerMP)player, mb, stack); return doAction(player, hand); From 569a0f89406789a33ffd00a328fbc67bd6320782 Mon Sep 17 00:00:00 2001 From: Avalon Date: Thu, 25 Jun 2026 14:59:53 -0400 Subject: [PATCH 08/15] #629 fix --- .../common/item/tools/ItemIIElectricHammer.java | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/src/main/java/pl/pabilo8/immersiveintelligence/common/item/tools/ItemIIElectricHammer.java b/src/main/java/pl/pabilo8/immersiveintelligence/common/item/tools/ItemIIElectricHammer.java index 0de13d274..99bc5af60 100644 --- a/src/main/java/pl/pabilo8/immersiveintelligence/common/item/tools/ItemIIElectricHammer.java +++ b/src/main/java/pl/pabilo8/immersiveintelligence/common/item/tools/ItemIIElectricHammer.java @@ -216,14 +216,18 @@ public EnumActionResult onItemUse(EntityPlayer player, World world, BlockPos pos if(!(te instanceof IConstructionRequiringDevice)) return EnumActionResult.PASS; IConstructionRequiringDevice mb = ((IConstructionRequiringDevice)te).master(); - int energy = IIItemUtils.canConstructFreeOfCharge(player)?999999: cap.extractEnergy(Tools.electricHammerEnergyPerUseConstruction, false); - if(mb!=null&&!mb.isConstructionFinished()&&energy > 0) + if(mb!=null&&!mb.isConstructionFinished()) { if(!IIItemUtils.canConstructFreeOfCharge(player)) - cap.extractEnergy(Tools.electricHammerEnergyPerUseConstruction, false); - mb.progressConstruction(energy); - world.playSound(null, pos, IISounds.constructionHammer, SoundCategory.PLAYERS, 0.5f, 1); + int energy = IIItemUtils.canConstructFreeOfCharge(player)?999999: cap.extractEnergy(Tools.electricHammerEnergyPerUseConstruction, false); + if(energy > 0) + { + if(!IIItemUtils.canConstructFreeOfCharge(player)) + cap.extractEnergy(Tools.electricHammerEnergyPerUseConstruction, false); + mb.progressConstruction(energy); + world.playSound(null, pos, IISounds.constructionHammer, SoundCategory.PLAYERS, 0.5f, 1); + } } return EnumActionResult.PASS; From ee001d3afb29ef77ada73dac188a21932892dfbd Mon Sep 17 00:00:00 2001 From: Avalon Date: Thu, 25 Jun 2026 17:18:56 -0400 Subject: [PATCH 09/15] #626 part 2 --- .../common/item/tools/ItemIIElectricHammer.java | 1 - 1 file changed, 1 deletion(-) diff --git a/src/main/java/pl/pabilo8/immersiveintelligence/common/item/tools/ItemIIElectricHammer.java b/src/main/java/pl/pabilo8/immersiveintelligence/common/item/tools/ItemIIElectricHammer.java index 99bc5af60..fb416b679 100644 --- a/src/main/java/pl/pabilo8/immersiveintelligence/common/item/tools/ItemIIElectricHammer.java +++ b/src/main/java/pl/pabilo8/immersiveintelligence/common/item/tools/ItemIIElectricHammer.java @@ -219,7 +219,6 @@ public EnumActionResult onItemUse(EntityPlayer player, World world, BlockPos pos if(mb!=null&&!mb.isConstructionFinished()) { - if(!IIItemUtils.canConstructFreeOfCharge(player)) int energy = IIItemUtils.canConstructFreeOfCharge(player)?999999: cap.extractEnergy(Tools.electricHammerEnergyPerUseConstruction, false); if(energy > 0) { From 6e09f05f66aaef225e2e89cb0434ac03a4ac4f9a Mon Sep 17 00:00:00 2001 From: Avalon Date: Sun, 28 Jun 2026 12:14:41 -0400 Subject: [PATCH 10/15] #604 fix added diesel/ bio diesel as a valid (and super efficient) fuel type --- .../pl/pabilo8/immersiveintelligence/common/CommonProxy.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/pl/pabilo8/immersiveintelligence/common/CommonProxy.java b/src/main/java/pl/pabilo8/immersiveintelligence/common/CommonProxy.java index c95583910..71983b428 100644 --- a/src/main/java/pl/pabilo8/immersiveintelligence/common/CommonProxy.java +++ b/src/main/java/pl/pabilo8/immersiveintelligence/common/CommonProxy.java @@ -350,6 +350,8 @@ public static void registerRecipes(Register event) LighterFuelHandler.addFuel(FluidRegistry.getFluid("creosote"), 100); LighterFuelHandler.addFuel(FluidRegistry.getFluid("ethanol"), 20); + LighterFuelHandler.addFuel(FluidRegistry.getFluid("diesel"), 10); + LighterFuelHandler.addFuel(FluidRegistry.getFluid("biodiesel"), 10); MachinegunCoolantHandler.addCoolant(FluidRegistry.WATER, 1); From 290ae078fd085a95700ec4fbf85953f69b15f350 Mon Sep 17 00:00:00 2001 From: Avalon Date: Sun, 28 Jun 2026 12:59:48 -0400 Subject: [PATCH 11/15] #617 fix jarona --- .../immersiveintelligence/client/manual/IIManualPage.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/pl/pabilo8/immersiveintelligence/client/manual/IIManualPage.java b/src/main/java/pl/pabilo8/immersiveintelligence/client/manual/IIManualPage.java index f33f781e1..7a5a00cdd 100644 --- a/src/main/java/pl/pabilo8/immersiveintelligence/client/manual/IIManualPage.java +++ b/src/main/java/pl/pabilo8/immersiveintelligence/client/manual/IIManualPage.java @@ -221,6 +221,9 @@ public void renderPage(GuiManual gui, int x, int y, int mx, int my) GlStateManager.enableBlend(); + //sets tooltip to null to ensure it's cleared if not moused over + this.tooltipWrapper.tooltip = null; + GlStateManager.pushMatrix(); GlStateManager.color(1, 1, 1, 0.25f); PageTraits hoveredTrait = null; From 7fa565ee4824100fcd0e75f1ae29d8bfcb449416 Mon Sep 17 00:00:00 2001 From: Avalon Date: Tue, 30 Jun 2026 10:48:10 -0400 Subject: [PATCH 12/15] #599 fix swapped recipie from brass to steel plates --- .../immersiveintelligence/common/crafting/IIRecipes.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/pl/pabilo8/immersiveintelligence/common/crafting/IIRecipes.java b/src/main/java/pl/pabilo8/immersiveintelligence/common/crafting/IIRecipes.java index 1643980c1..7a545b4f1 100644 --- a/src/main/java/pl/pabilo8/immersiveintelligence/common/crafting/IIRecipes.java +++ b/src/main/java/pl/pabilo8/immersiveintelligence/common/crafting/IIRecipes.java @@ -638,10 +638,10 @@ public static void addBulletPressRecipes() new IngredientStack("plateSteel", 4), PressMolds.NAVAL_MINE, 4800); addMetalPressBullet(Casing.TRIPMINE, - new IngredientStack("plateBrass", 2), + new IngredientStack("plateSteel", 2), PressMolds.TRIPMINE, 3600); addMetalPressBullet(Casing.TELLERMINE, - new IngredientStack("plateBrass", 2), + new IngredientStack("plateSteel", 2), PressMolds.TELLERMINE, 3600); MetalPressRecipe.removeRecipes(new ItemStack(IEContent.itemBullet, 2, 0)); From 30e179ed62d632999e6993262a4c171a5f667b54 Mon Sep 17 00:00:00 2001 From: Avalon Date: Tue, 30 Jun 2026 12:30:06 -0400 Subject: [PATCH 13/15] #628 fix added a check for the electric wrench having power in order to do upgrades fixed the consumption rate of items for the unregulated saw upgrade to match display --- .../immersiveintelligence/common/crafting/IIRecipes.java | 2 +- .../common/item/tools/ItemIIElectricWrench.java | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/main/java/pl/pabilo8/immersiveintelligence/common/crafting/IIRecipes.java b/src/main/java/pl/pabilo8/immersiveintelligence/common/crafting/IIRecipes.java index 7a545b4f1..93bb96882 100644 --- a/src/main/java/pl/pabilo8/immersiveintelligence/common/crafting/IIRecipes.java +++ b/src/main/java/pl/pabilo8/immersiveintelligence/common/crafting/IIRecipes.java @@ -1177,7 +1177,7 @@ public static void addUpgradeRecipes() .withCost( new IngredientStack(IIContent.itemMotorGear.getStack(MotorGear.STEEL)), new IngredientStack(new ItemStack(IEContent.itemMaterial, 1, 8)), - new IngredientStack("stickSteel", 2) + new IngredientStack("stickSteel", 1) ) .withRequiredProgress(32000); diff --git a/src/main/java/pl/pabilo8/immersiveintelligence/common/item/tools/ItemIIElectricWrench.java b/src/main/java/pl/pabilo8/immersiveintelligence/common/item/tools/ItemIIElectricWrench.java index 41519c333..8ac63f4f0 100644 --- a/src/main/java/pl/pabilo8/immersiveintelligence/common/item/tools/ItemIIElectricWrench.java +++ b/src/main/java/pl/pabilo8/immersiveintelligence/common/item/tools/ItemIIElectricWrench.java @@ -107,10 +107,15 @@ public EnumActionResult onItemUseFirst(EntityPlayer player, World world, BlockPo if(te==null||te.getCurrentUpgrade()==null) return EnumActionResult.PASS; + ItemStack heldItem = player.getHeldItem(hand); + //check if the powered wrench has charge + if(!IIItemUtils.canUpgradeFreeOfCharge(player)&&!hasEnoughEnergy(heldItem)) + return EnumActionResult.PASS; + if(te.addUpgradeInstallProgress(IIItemUtils.canUpgradeFreeOfCharge(player)?999999: Tools.electricWrenchUpgradeProgress)) { world.playSound(null, pos, IISounds.constructionElectricWrench, SoundCategory.PLAYERS, 0.5f, 1); - damageWrench(player.getHeldItem(hand), player); + damageWrench(heldItem, player); } return EnumActionResult.SUCCESS; From ca18e65e07b3f4d5beaf920c8234f69fd2108c11 Mon Sep 17 00:00:00 2001 From: Avalon Date: Sun, 5 Jul 2026 12:26:25 -0400 Subject: [PATCH 14/15] #597 fix before it always displayed one tick for the full MC day time. I added a little thing that puts the time (ticks) over how long a minecraft day takes. --- .../common/compat/jei/IIRecipeJEIWrapper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/pl/pabilo8/immersiveintelligence/common/compat/jei/IIRecipeJEIWrapper.java b/src/main/java/pl/pabilo8/immersiveintelligence/common/compat/jei/IIRecipeJEIWrapper.java index f9bc46d93..415b50f67 100644 --- a/src/main/java/pl/pabilo8/immersiveintelligence/common/compat/jei/IIRecipeJEIWrapper.java +++ b/src/main/java/pl/pabilo8/immersiveintelligence/common/compat/jei/IIRecipeJEIWrapper.java @@ -341,7 +341,7 @@ private void drawTimeInfo(int x, int y) .finish(); //Draw time text - String timeStr = GuiScreen.isShiftKeyDown()?"1 t": recipe.getTotalProcessTime()+" t"; + String timeStr = GuiScreen.isShiftKeyDown()?String.format("%.2f d", recipe.getTotalProcessTime()/24000f): recipe.getTotalProcessTime()+" t"; ClientUtils.mc().fontRenderer.drawString(timeStr, x+14, y+3, DecoColors.H1.getPackedRGB()); } From 0cbf87f086ad56a932bfa73b7c8530ae171a66fb Mon Sep 17 00:00:00 2001 From: Avalon Date: Sun, 5 Jul 2026 13:24:53 -0400 Subject: [PATCH 15/15] #601 fix ROUNDING BABY --- .../client/gui/overlay/GuiOverlayZoom.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/pl/pabilo8/immersiveintelligence/client/gui/overlay/GuiOverlayZoom.java b/src/main/java/pl/pabilo8/immersiveintelligence/client/gui/overlay/GuiOverlayZoom.java index 5da59c536..1ecff7ff8 100644 --- a/src/main/java/pl/pabilo8/immersiveintelligence/client/gui/overlay/GuiOverlayZoom.java +++ b/src/main/java/pl/pabilo8/immersiveintelligence/client/gui/overlay/GuiOverlayZoom.java @@ -77,8 +77,9 @@ private void drawZoomStepsBar(int width, int height, int resMin, EntityPlayer pl draw.drawTexRect(0, 0, 8/256f*resMin, 7/256f*resMin, 88/256f, 98/256f, 103/256f, 110/256f); draw.finish(); - //Draw magnification amount - ClientUtils.font().drawString(1/steps[curStep]+"x", (int)(resMin*1.385f), (int)(100/256f*resMin), 0xffffff); + //Draw magnification amount (rounded to nearest whole number) + int magnRounded = Math.round(1f/steps[curStep]); + ClientUtils.font().drawString(magnRounded+"x", (int)(resMin*1.385f), (int)(100/256f*resMin), 0xffffff); }