Compare commits

...
4 Commits
Author SHA1 Message Date
Maya aeb6392d52 update 2025-04-23 14:51:43 -05:00
__felix__and__felix__ c221b7b03b Change optional decorators modid gregtech to gregtech_nh for compat (#53)
Co-authored-by: __felix__ <134875831+48a3efa65c881ef567345b17f3910e06@users.noreply.github.com>
2025-04-23 14:51:32 -05:00
Maya bf664d00c8 update 2025-04-19 09:59:48 -05:00
RubilaxXxx 7f7c4083cc fix ichor pouch (#52) 2025-04-19 09:58:39 -05:00
5 changed files with 19 additions and 28 deletions

No files matched your search

+10 -7
View File
@@ -3,20 +3,23 @@
dependencies {
api('com.github.GTNewHorizons:Baubles-Expanded:2.1.6-GTNH:dev')
api('thaumcraft:Thaumcraft:1.7.10-4.2.3.5:dev')
api('com.github.GTNewHorizons:Applied-Energistics-2-Unofficial:rv3-beta-576-GTNH:api')
api('com.github.GTNewHorizons:Applied-Energistics-2-Unofficial:rv3-beta-586-GTNH:api')
compileOnly('com.github.GTNewHorizons:Botania:1.12.6-GTNH:dev') {transitive=false}
compileOnly('com.github.GTNewHorizons:EnderCore:0.4.6:dev') {transitive=false}
compileOnly('com.github.GTNewHorizons:EnderIO:2.9.6:dev') {transitive=false}
compileOnly('com.github.GTNewHorizons:EnderIO:2.9.7:dev') {transitive=false}
compileOnly('com.github.GTNewHorizons:EnderStorage:1.7.2:dev') {transitive=false}
compileOnly('com.github.GTNewHorizons:waila:1.8.4:api') {transitive=false}
compileOnly('com.github.GTNewHorizons:TinkersConstruct:1.13.16-GTNH:dev') {transitive=false}
compileOnly('com.github.GTNewHorizons:TinkersConstruct:1.13.21-GTNH:dev') {transitive=false}
compileOnly('com.github.GTNewHorizons:ForgeMultipart:1.6.2:dev') {transitive=false}
compileOnly('com.github.GTNewHorizons:CodeChickenCore:1.4.1:dev') {transitive=false}
compileOnly('com.github.GTNewHorizons:OpenComputers:1.11.12-GTNH:api') {transitive=false}
compileOnly("com.github.GTNewHorizons:GT5-Unofficial:5.09.51.227:dev") {transitive=false}
compileOnly('com.github.GTNewHorizons:OpenComputers:1.11.13-GTNH:api') {transitive=false}
compileOnly('net.industrial-craft:industrialcraft-2:2.2.828-experimental:api') {transitive=false}
compileOnly("com.github.GTNewHorizons:GT5-Unofficial:5.09.51.251:dev") {transitive=false}
compileOnly('curse.maven:computercraft-67504:2269339')
compileOnly('curse.maven:cofh-core-69162:2388751')
compileOnly('net.industrial-craft:industrialcraft-2:2.2.828-experimental:api') {transitive=false}
runtimeOnly('com.github.GTNewHorizons:TCNEIAdditions:1.4.8:dev') {
exclude module: 'Baubles'
}
}
@@ -29,13 +29,11 @@ public class ContainerIchorPouch extends ContainerPlayerInv {
ItemStack pouch;
int blockSlot;
public ContainerIchorPouch(EntityPlayer player) {
public ContainerIchorPouch(EntityPlayer player, ItemStack bag) {
super(player.inventory);
pouch = bag;
this.player = player;
pouch = player.getCurrentEquippedItem();
blockSlot = player.inventory.currentItem + 27 + 13 * 9;
for (int y = 0; y < 9; y++) for (int x = 0; x < 13; x++)
addSlotToContainer(new SlotNoPouches(inv, y * 13 + x, 12 + x * 18, 8 + y * 18));
initPlayerInv();
@@ -45,17 +43,6 @@ public class ContainerIchorPouch extends ContainerPlayerInv {
} catch (Exception ignored) {}
}
@Override
public void detectAndSendChanges() {
if (!player.worldObj.isRemote) {
if (player.getCurrentEquippedItem() != pouch) {
player.closeScreen();
return;
}
}
super.detectAndSendChanges();
}
@Override
public ItemStack transferStackInSlot(EntityPlayer par1EntityPlayer, int slot) {
if (slot == blockSlot) return null;
@@ -75,7 +75,8 @@ public class ItemIchorPouch extends ItemFocusPouch implements IBauble, ITTinkere
@Override
public ItemStack onItemRightClick(ItemStack par1ItemStack, World par2World, EntityPlayer par3EntityPlayer) {
par3EntityPlayer.openGui(ThaumicTinkerer.instance, LibGuiIDs.GUI_ID_ICHOR_POUCH, par2World, 0, 0, 0);
if (!par2World.isRemote)
par3EntityPlayer.openGui(ThaumicTinkerer.instance, LibGuiIDs.GUI_ID_ICHOR_POUCH, par2World, 0, 0, 0);
return par1ItemStack;
}
@@ -32,7 +32,7 @@ import thaumic.tinkerer.client.lib.LibResources;
import thaumic.tinkerer.common.registry.ThaumicTinkererRecipe;
import thaumic.tinkerer.common.research.IRegisterableResearch;
@Optional.InterfaceList({ @Optional.Interface(iface = "gregtech.api.hazards.IHazardProtector", modid = "gregtech") })
@Optional.InterfaceList({ @Optional.Interface(iface = "gregtech.api.hazards.IHazardProtector", modid = "gregtech_nh") })
public abstract class ItemIchorclothArmorAdv extends ItemIchorclothArmor implements IHazardProtector {
public ItemIchorclothArmorAdv(int par2) {
@@ -114,7 +114,7 @@ public abstract class ItemIchorclothArmorAdv extends ItemIchorclothArmor impleme
}
/// GT5 Hazmat protection
@Optional.Method(modid = "gregtech")
@Optional.Method(modid = "gregtech_nh")
@Override
public boolean protectsAgainst(ItemStack itemStack, Hazard hazard) {
return true;
@@ -60,7 +60,7 @@ public class GuiHandler implements IGuiHandler {
case LibGuiIDs.GUI_ID_ICHOR_POUCH:
if (!isDimensionAllowed(player)) return null;
return new ContainerIchorPouch(player);
return new ContainerIchorPouch(player, player.getCurrentEquippedItem());
case LibGuiIDs.GUI_ID_WARP_GATE:
return new ContainerWarpGate((TileWarpGate) tile, player.inventory);
@@ -87,8 +87,8 @@ public class GuiHandler implements IGuiHandler {
return new GuiAspectAnalyzer((TileAspectAnalyzer) tile, player.inventory);
case LibGuiIDs.GUI_ID_ICHOR_POUCH:
if (!isDimensionAllowed(player)) return null;
return new GuiIchorPouch(new ContainerIchorPouch(player));
if ((!isDimensionAllowed(player))) return null;
return new GuiIchorPouch(new ContainerIchorPouch(player, player.getCurrentEquippedItem()));
case LibGuiIDs.GUI_ID_WARP_GATE:
return new GuiWarpGate((TileWarpGate) tile, player.inventory);