Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update MUI2 #68

Merged
merged 2 commits into from
Sep 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
.gradle
.settings
/.idea/
/.vscode/
/run/
/build/
/eclipse/
Expand All @@ -25,7 +26,13 @@ whitelist.json
*.iml
*.ipr
*.iws
src/main/resources/mixins.*.json
src/main/resources/mixins.*([!.]).json
*.bat
*.DS_Store
!gradlew.bat
.factorypath
addon.local.gradle
addon.local.gradle.kts
addon.late.local.gradle
addon.late.local.gradle.kts
layout.json
14 changes: 7 additions & 7 deletions dependencies.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,23 @@

dependencies {
api('com.github.GTNewHorizons:BuildCraft:7.1.39:dev')
implementation('com.github.GTNewHorizons:GT5-Unofficial:5.09.49.47:dev')
implementation('com.github.GTNewHorizons:GT5-Unofficial:5.09.49.74:dev')
implementation('com.github.GTNewHorizons:NotEnoughItems:2.6.34-GTNH:dev')
implementation('com.github.GTNewHorizons:ModularUI2:2.1.3-1.7.10:dev')
implementation('com.github.GTNewHorizons:ModularUI2:2.1.5-1.7.10:dev')
implementation('com.github.GTNewHorizons:CodeChickenLib:1.3.0:dev')

compileOnly('com.github.GTNewHorizons:OpenComputers:1.10.22-GTNH:api') { transitive = false }
compileOnly('com.github.GTNewHorizons:Applied-Energistics-2-Unofficial:rv3-beta-445-GTNH:api') { transitive = false }
compileOnly('com.github.GTNewHorizons:StorageDrawers:1.13.9-GTNH:api') { transitive = false }
compileOnly('com.github.GTNewHorizons:OpenComputers:1.10.23-GTNH:api') { transitive = false }
compileOnly('com.github.GTNewHorizons:Applied-Energistics-2-Unofficial:rv3-beta-452-GTNH:api') { transitive = false }
compileOnly('com.github.GTNewHorizons:StorageDrawers:1.13.11-GTNH:api') { transitive = false }
compileOnly('com.github.GTNewHorizons:Jabba:1.4.6:dev') { transitive = false }
compileOnly('com.github.GTNewHorizons:ironchest:6.0.85:dev') { transitive = false }
compileOnly('com.github.GTNewHorizons:ironchest:6.0.86:dev') { transitive = false }
compileOnly('com.github.GTNewHorizons:ForestryMC:4.9.10:dev') { transitive = false }
compileOnly('com.github.GTNewHorizons:EnderIO:2.8.17:dev') { transitive = false }
compileOnly('com.github.GTNewHorizons:EnderCore:0.4.6:dev') { transitive = false }
compileOnly('com.github.GTNewHorizons:EnderStorage:1.6.0:dev') { transitive = false }
compileOnly('com.github.GTNewHorizons:ExtraCells2:2.5.35:api') { transitive = false }
compileOnly('com.github.GTNewHorizons:Binnie:2.4.1:dev') { transitive = false }
compileOnly('com.github.GTNewHorizons:GT5-Unofficial:5.09.49.55:dev') { transitive = false }
compileOnly('com.github.GTNewHorizons:GT5-Unofficial:5.09.49.74:dev') { transitive = false }

compileOnly('net.industrial-craft:industrialcraft-2:2.2.828-experimental:dev') { transitive = false }
compileOnly('thaumcraft:Thaumcraft:1.7.10-4.2.3.5:dev') { transitive = false }
Expand Down
21 changes: 2 additions & 19 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -50,27 +50,10 @@ enableGenericInjection = false
# Generate a class with a String field for the mod version named as defined below.
# If generateGradleTokenClass is empty or not missing, no such class will be generated.
# If gradleTokenVersion is empty or missing, the field will not be present in the class.
generateGradleTokenClass =
generateGradleTokenClass = logisticspipes.Tags

# Name of the token containing the project's current version to generate/replace.
gradleTokenVersion = GRADLETOKEN_VERSION

# [DEPRECATED] Mod ID replacement token.
gradleTokenModId =

# [DEPRECATED] Mod name replacement token.
gradleTokenModName =

# [DEPRECATED] Mod Group replacement token.
gradleTokenGroupName =

# [DEPRECATED]
# Multiple source files can be defined here by providing a comma-separated list: Class1.java,Class2.java,Class3.java
# public static final String VERSION = "GRADLETOKEN_VERSION";
# The string's content will be replaced with your mod's version when compiled. You should use this to specify your mod's
# version in @Mod([...], version = VERSION, [...]).
# Leave these properties empty to skip individual token replacements.
replaceGradleTokenInFile = LPConstants.java
gradleTokenVersion = VERSION

# In case your mod provides an API for other mods to implement you may declare its package here. Otherwise, you can
# leave this property empty.
Expand Down
2 changes: 1 addition & 1 deletion settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ pluginManagement {
}

plugins {
id 'com.gtnewhorizons.gtnhsettingsconvention' version '1.0.26'
id 'com.gtnewhorizons.gtnhsettingsconvention' version '1.0.27'
}


2 changes: 0 additions & 2 deletions src/main/java/logisticspipes/LPConstants.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ private LPConstants() {}
public static final float BC_PIPE_MAX_POS = 0.75F;

public static final boolean DEBUG = false;
public static final String MCVersion = "1.7.10";
public static final String VERSION = "GRADLETOKEN_VERSION";
public static final boolean DEV_BUILD = false;

public static int pipeModel = -1;
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/logisticspipes/LogisticsPipes.java
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@
@Mod(
modid = "LogisticsPipes",
name = "Logistics Pipes",
version = LPConstants.VERSION,
version = Tags.VERSION,
dependencies = "required-after:Forge@[10.12.1.1079,);" + "required-after:BuildCraft|Core@[7.1.34,);"
+ "required-after:BuildCraft|Transport;"
+ "required-after:BuildCraft|Silicon;"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
import net.minecraft.world.World;
import net.minecraftforge.common.util.ForgeDirection;

import logisticspipes.LPConstants;
import logisticspipes.LogisticsPipes;
import logisticspipes.Tags;
import logisticspipes.api.IRoutedPowerProvider;
import logisticspipes.interfaces.IGuiOpenControler;
import logisticspipes.interfaces.IGuiTileEntity;
Expand Down Expand Up @@ -364,7 +364,7 @@ private boolean useEnergy(int amount) {
@Override
public void func_145828_a(CrashReportCategory par1CrashReportCategory) {
super.func_145828_a(par1CrashReportCategory);
par1CrashReportCategory.addCrashSection("LP-Version", LPConstants.VERSION);
par1CrashReportCategory.addCrashSection("LP-Version", Tags.VERSION);
}

public World getWorld() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
import net.minecraft.tileentity.TileEntity;
import net.minecraftforge.common.util.ForgeDirection;

import logisticspipes.LPConstants;
import logisticspipes.Tags;
import logisticspipes.config.Configs;
import logisticspipes.interfaces.ICraftingResultHandler;
import logisticspipes.interfaces.IGuiOpenControler;
Expand Down Expand Up @@ -427,7 +427,7 @@ public boolean isItemValidForSlot(int i, ItemStack itemstack) {
@Override
public void func_145828_a(CrashReportCategory par1CrashReportCategory) {
super.func_145828_a(par1CrashReportCategory);
par1CrashReportCategory.addCrashSection("LP-Version", LPConstants.VERSION);
par1CrashReportCategory.addCrashSection("LP-Version", Tags.VERSION);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
import cofh.api.energy.IEnergyHandler;
import cpw.mods.fml.common.Optional;
import ic2.api.energy.tile.IEnergySink;
import logisticspipes.LPConstants;
import logisticspipes.Tags;
import logisticspipes.api.ILogisticsPowerProvider;
import logisticspipes.blocks.LogisticsSolidTileEntity;
import logisticspipes.config.Configs;
Expand Down Expand Up @@ -307,7 +307,7 @@ public boolean isHUDExistent() {
@Override
public void func_145828_a(CrashReportCategory par1CrashReportCategory) {
super.func_145828_a(par1CrashReportCategory);
par1CrashReportCategory.addCrashSection("LP-Version", LPConstants.VERSION);
par1CrashReportCategory.addCrashSection("LP-Version", Tags.VERSION);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
import net.minecraft.world.World;
import net.minecraftforge.common.util.ForgeDirection;

import logisticspipes.LPConstants;
import logisticspipes.Tags;
import logisticspipes.blocks.LogisticsSolidTileEntity;
import logisticspipes.gui.hud.HUDPowerLevel;
import logisticspipes.interfaces.IBlockWatchingHandler;
Expand Down Expand Up @@ -360,7 +360,7 @@ public void updateClients() {
@Override
public void func_145828_a(CrashReportCategory par1CrashReportCategory) {
super.func_145828_a(par1CrashReportCategory);
par1CrashReportCategory.addCrashSection("LP-Version", LPConstants.VERSION);
par1CrashReportCategory.addCrashSection("LP-Version", Tags.VERSION);
}

public void handlePowerPacket(float float1) {
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/logisticspipes/compat/ModularUIHelper.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import net.minecraft.world.World;

import com.cleanroommc.modularui.drawable.UITexture;
import com.cleanroommc.modularui.factory.TileEntityGuiFactory;
import com.cleanroommc.modularui.factory.GuiFactories;

import logisticspipes.LogisticsPipes;
import logisticspipes.pipes.basic.CoreUnroutedPipe;
Expand All @@ -18,6 +18,6 @@ public static void openPipeUI(EntityPlayer player, CoreUnroutedPipe pipe) {
World world = pipe.getWorld();
if (world == null || world.isRemote) return;

TileEntityGuiFactory.open(player, pipe.getX(), pipe.getY(), pipe.getZ());
GuiFactories.tileEntity().open(player, pipe.getX(), pipe.getY(), pipe.getZ());
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
import li.cil.oc.api.network.SidedEnvironment;
import logisticspipes.LPConstants;
import logisticspipes.LogisticsPipes;
import logisticspipes.Tags;
import logisticspipes.api.ILPPipe;
import logisticspipes.api.ILPPipeTile;
import logisticspipes.api.IMUICompatiblePipe;
Expand Down Expand Up @@ -282,7 +283,7 @@ public void func_145828_a(CrashReportCategory par1CrashReportCategory) {
e.printStackTrace();
}
}
par1CrashReportCategory.addCrashSection("LP-Version", LPConstants.VERSION);
par1CrashReportCategory.addCrashSection("LP-Version", Tags.VERSION);
if (pipe != null) {
par1CrashReportCategory.addCrashSection("Pipe", pipe.getClass().getCanonicalName());
if (pipe.transport != null) {
Expand Down
Loading