From fd11fb5237f2fe3e078d0f2978d829c43dd81472 Mon Sep 17 00:00:00 2001 From: Dream Master Date: Fri, 12 Sep 2025 14:37:44 +0200 Subject: [PATCH 1/6] update --- dependencies.gradle | 4 ++-- settings.gradle | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dependencies.gradle b/dependencies.gradle index d1823fdc..1c724e70 100644 --- a/dependencies.gradle +++ b/dependencies.gradle @@ -1,10 +1,10 @@ // Add your dependencies here dependencies { - compileOnlyApi('com.github.GTNewHorizons:Angelica:1.0.0-beta55:api') + compileOnlyApi('com.github.GTNewHorizons:Angelica:1.0.0-beta56:api') api("com.github.GTNewHorizons:Mantle:0.5.1:dev") api("com.github.GTNewHorizons:ForgeMultipart:1.6.8:dev") - implementation("com.github.GTNewHorizons:NotEnoughItems:2.7.77-GTNH:dev") + implementation("com.github.GTNewHorizons:NotEnoughItems:2.7.82-GTNH:dev") compileOnlyApi("curse.maven:cofh-core-69162:2388751") compileOnly("com.github.GTNewHorizons:inventory-tweaks:1.7.1:api") compileOnly("com.github.GTNewHorizons:waila:1.8.12:api") diff --git a/settings.gradle b/settings.gradle index 7622cde1..bc5e0f05 100644 --- a/settings.gradle +++ b/settings.gradle @@ -17,7 +17,7 @@ pluginManagement { } plugins { - id 'com.gtnewhorizons.gtnhsettingsconvention' version '1.0.41' + id 'com.gtnewhorizons.gtnhsettingsconvention' version '1.0.42' } From e97d290a6b14342f31a1d06582d78286c3a2dce2 Mon Sep 17 00:00:00 2001 From: Wilhelm Schuster Date: Tue, 16 Sep 2025 16:41:10 +0200 Subject: [PATCH 2/6] Satisfy the pixel peepers (armor tab texture offset fix) (#211) --- src/main/java/tconstruct/client/tabs/AbstractTab.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/tconstruct/client/tabs/AbstractTab.java b/src/main/java/tconstruct/client/tabs/AbstractTab.java index efc7f1bc..5c978b3e 100644 --- a/src/main/java/tconstruct/client/tabs/AbstractTab.java +++ b/src/main/java/tconstruct/client/tabs/AbstractTab.java @@ -26,7 +26,7 @@ public abstract class AbstractTab extends GuiButton { if (this.visible) { GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F); - int yTexPos = this.enabled ? 3 : 32; + int yTexPos = this.enabled ? 2 : 32; int ySize = this.enabled ? 25 : 32; int xOffset = this.id == 2 ? 0 : 1; int yPos = this.yPosition + (this.enabled ? 3 : 0); From 0b8aa377b98eb8005f730f40e40276059f09bbea Mon Sep 17 00:00:00 2001 From: Martin Robertz Date: Wed, 17 Sep 2025 13:50:24 +0200 Subject: [PATCH 3/6] update --- dependencies.gradle | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/dependencies.gradle b/dependencies.gradle index 1c724e70..3411979d 100644 --- a/dependencies.gradle +++ b/dependencies.gradle @@ -4,7 +4,7 @@ dependencies { compileOnlyApi('com.github.GTNewHorizons:Angelica:1.0.0-beta56:api') api("com.github.GTNewHorizons:Mantle:0.5.1:dev") api("com.github.GTNewHorizons:ForgeMultipart:1.6.8:dev") - implementation("com.github.GTNewHorizons:NotEnoughItems:2.7.82-GTNH:dev") + implementation("com.github.GTNewHorizons:NotEnoughItems:2.7.85-GTNH:dev") compileOnlyApi("curse.maven:cofh-core-69162:2388751") compileOnly("com.github.GTNewHorizons:inventory-tweaks:1.7.1:api") compileOnly("com.github.GTNewHorizons:waila:1.8.12:api") @@ -16,14 +16,14 @@ dependencies { compileOnly("thaumcraft:Thaumcraft:1.7.10-4.2.3.5:dev") compileOnly("com.github.GTNewHorizons:Mobs-Info:0.5.4-GTNH:dev") compileOnlyApi("net.industrial-craft:industrialcraft-2:2.2.828-experimental:dev") - compileOnlyApi("com.github.GTNewHorizons:Natura:2.8.8:dev") - compileOnly('com.github.GTNewHorizons:Baubles-Expanded:2.1.13-GTNH:dev') + compileOnlyApi("com.github.GTNewHorizons:Natura:2.8.9:dev") + compileOnly('com.github.GTNewHorizons:Baubles-Expanded:2.1.14-GTNH:dev') // For testing scythe crop harvesting // devOnlyNonPublishable("net.industrial-craft:industrialcraft-2:2.2.828-experimental:dev") // devOnlyNonPublishable("com.github.GTNewHorizons:harvestcraft:1.3.2-GTNH:dev") // devOnlyNonPublishable(deobfCurse("pams-harvest-the-nether-231262:2241397")) - // devOnlyNonPublishable("com.github.GTNewHorizons:Natura:2.8.8:dev") + // devOnlyNonPublishable("com.github.GTNewHorizons:Natura:2.8.9:dev") // devOnlyNonPublishable("com.github.GTNewHorizons:EnderCore:0.4.8") } From d996648b0026b68e6503ae482a819881c8c4d2c8 Mon Sep 17 00:00:00 2001 From: Jordan Rey Date: Sat, 20 Sep 2025 08:36:51 +0200 Subject: [PATCH 4/6] fix: consume vanilla arrows instead of duplicating them (#212) --- .../java/tconstruct/library/weaponry/ProjectileWeapon.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/tconstruct/library/weaponry/ProjectileWeapon.java b/src/main/java/tconstruct/library/weaponry/ProjectileWeapon.java index 9e76f72c..b416967a 100644 --- a/src/main/java/tconstruct/library/weaponry/ProjectileWeapon.java +++ b/src/main/java/tconstruct/library/weaponry/ProjectileWeapon.java @@ -200,10 +200,14 @@ public abstract class ProjectileWeapon extends ToolCore implements IBattlegearWe // use up ammo if (!player.capabilities.isCreativeMode && !world.isRemote) { if (ammo.getItem() instanceof IAmmo) { + // if we're dealing with tinkers ammo, handle their custom logic if (ammo.hasTagCompound()) { int ammoReinforced = ammo.getTagCompound().getCompoundTag("InfiTool").getInteger("Unbreaking"); if (random.nextInt(10) < 10 - ammoReinforced) ((IAmmo) ammo.getItem()).consumeAmmo(1, ammo); } else player.inventory.consumeInventoryItem(ammo.getItem()); + } else { + // for non-custom IAmmo types (like vanilla arrows), simply consume them like in vanilla + player.inventory.consumeInventoryItem(ammo.getItem()); } } From 03ce112a50b70d555b4a0e0cc75bec42cb8db7ed Mon Sep 17 00:00:00 2001 From: Martin Robertz Date: Sat, 20 Sep 2025 16:26:26 +0200 Subject: [PATCH 5/6] update --- dependencies.gradle | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dependencies.gradle b/dependencies.gradle index 3411979d..4e9fa372 100644 --- a/dependencies.gradle +++ b/dependencies.gradle @@ -4,10 +4,10 @@ dependencies { compileOnlyApi('com.github.GTNewHorizons:Angelica:1.0.0-beta56:api') api("com.github.GTNewHorizons:Mantle:0.5.1:dev") api("com.github.GTNewHorizons:ForgeMultipart:1.6.8:dev") - implementation("com.github.GTNewHorizons:NotEnoughItems:2.7.85-GTNH:dev") + implementation("com.github.GTNewHorizons:NotEnoughItems:2.7.87-GTNH:dev") compileOnlyApi("curse.maven:cofh-core-69162:2388751") compileOnly("com.github.GTNewHorizons:inventory-tweaks:1.7.1:api") - compileOnly("com.github.GTNewHorizons:waila:1.8.12:api") + compileOnly("com.github.GTNewHorizons:waila:1.8.13:api") compileOnly("com.github.GTNewHorizons:Battlegear2:1.4.3:api") compileOnly("curse.maven:minefactory-reloaded-66672:2366150") compileOnly("curse.maven:zelda-sword-skills-220540:2384889") @@ -17,7 +17,7 @@ dependencies { compileOnly("com.github.GTNewHorizons:Mobs-Info:0.5.4-GTNH:dev") compileOnlyApi("net.industrial-craft:industrialcraft-2:2.2.828-experimental:dev") compileOnlyApi("com.github.GTNewHorizons:Natura:2.8.9:dev") - compileOnly('com.github.GTNewHorizons:Baubles-Expanded:2.1.14-GTNH:dev') + compileOnly('com.github.GTNewHorizons:Baubles-Expanded:2.1.15-GTNH:dev') // For testing scythe crop harvesting // devOnlyNonPublishable("net.industrial-craft:industrialcraft-2:2.2.828-experimental:dev") From 7acd88171ba9e6b904fe7d66fbda065e29f6fb08 Mon Sep 17 00:00:00 2001 From: Dredonkey <39687299+Dredonkey@users.noreply.github.com> Date: Mon, 29 Sep 2025 13:07:05 -0700 Subject: [PATCH 6/6] Fix crafting station sometimes detecting a chest next to a trapped chest as a double chest (#213) --- .../tools/logic/CraftingStationLogic.java | 27 ++++++++++--------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/src/main/java/tconstruct/tools/logic/CraftingStationLogic.java b/src/main/java/tconstruct/tools/logic/CraftingStationLogic.java index 368d277b..15e59dbc 100644 --- a/src/main/java/tconstruct/tools/logic/CraftingStationLogic.java +++ b/src/main/java/tconstruct/tools/logic/CraftingStationLogic.java @@ -95,11 +95,20 @@ public class CraftingStationLogic extends InventoryLogic implements ISidedInvent ? sidedIvn.getAccessibleSlotsFromSide(dir.getOpposite().ordinal()).length : inv.getSizeInventory(); - if (tile instanceof TileEntityChest) { - checkForChest(world, xPos, yPos, zPos, 1, 0); - checkForChest(world, xPos, yPos, zPos, -1, 0); - checkForChest(world, xPos, yPos, zPos, 0, 1); - checkForChest(world, xPos, yPos, zPos, 0, -1); + if (tile instanceof TileEntityChest tileChest) { + if (tileChest.adjacentChestZPos != null) { + doubleChest = new WeakReference<>(tileChest.adjacentChestZPos); + doubleFirst = false; + } else if (tileChest.adjacentChestZNeg != null) { + doubleChest = new WeakReference<>(tileChest.adjacentChestZNeg); + doubleFirst = true; + } else if (tileChest.adjacentChestXPos != null) { + doubleChest = new WeakReference<>(tileChest.adjacentChestXPos); + doubleFirst = false; + } else if (tileChest.adjacentChestXNeg != null) { + doubleChest = new WeakReference<>(tileChest.adjacentChestXNeg); + doubleFirst = true; + } } slotCount = chestSize * (doubleChest != null ? 2 : 1); invRows = (int) Math.ceil((double) slotCount / invColumns); @@ -113,14 +122,6 @@ public class CraftingStationLogic extends InventoryLogic implements ISidedInvent return PHConstruct.craftingStationBlacklist.contains(clazz.getName()); } - void checkForChest(World world, int x, int y, int z, int dx, int dz) { - TileEntity tile = world.getTileEntity(x + dx, y, z + dz); - if (tile instanceof TileEntityChest) { - doubleChest = new WeakReference<>((IInventory) tile); - doubleFirst = dx + dz < 0; - } - } - public boolean isDoubleChest() { return this.doubleChest != null; }