-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update FancyGradle and Forge Maven link to make anything work properly * Create temporary patch as workaround to missing profiles. * Make JEI CompileOnly so the game actually boots TODO: Find out why JEI was crashing and how to fix it. * Update Forge to 13.23.5.2860 * Remove ASM Patch, as it was causing a crash for some reason * Another try at getting JEI working, sadly unsuccessful * Remove temporary workaround of the missing resources issue * Bring back ASM Patch, as it wasn't the cause of corrupted asm jar? No idea how that worked the first time * Few build.gradle changes that could or could not improve stability of in-dev client? * Separate patches for 221+ and legacy into other folders for base * Set Patching mode for base to Fuzzy so it will find more patches required to compile * Add working patches for 164 * IC2-Base ApplyPatches Folder Version Separation Make the IC2-Base ApplyPatches gather patches from the folders with version ranges, depending on the version specified in the properties * Revert back to offset due to fuzzy accepting stuff that shouldn't be necessarily accepted. * Remove broken patches for 164 * Update build.gradle.kts * Fix up Generate Patches for IC2-Base * Generate Patches so Base for 164 compiles * Finish Patches per version separation in dev env * Port relevant Patches from 221+ to 164 * Fix up build script, it actually works for 164 \o/ * Update mcmod.info because it felt weird with so little info * Add requirement of 221+ with addition to 164 * OPINION REQUIRED - Single Jar Multiple IC2 Versions support * Dev Env Setup for multiple version patch generation. Bin Patches are now saved, as they are required for the mod build with multiple version support. They are saved under `src\main\generatedResrouces` directory. ISSUE: Either Build is required to be runned twice, or generateBinPatches has to be launched before triggering the build. I wasn't able to get this to find freshly-generated files for whatever reason. ISSUE: Dev Builds work only on a version of IC2 that is used to compile it. Dev Bin Patches are inserted to the jar root, and other patches are excluded. * Add patches pack for original 2.8.221+ support * Few Small fixes about the patch version selection * Fix patches not being possible to generate after initial setup * Add setup task to seperate group * Add additional check in PatcherFMLPlugin
- Loading branch information
Showing
230 changed files
with
6,638 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
25 changes: 25 additions & 0 deletions
25
...cts/IC2-Base/patches[2.8.164,2.8.165]/minecraft/ic2/core/block/BlockTileEntity.java.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
--- a/ic2/core/block/BlockTileEntity.java | ||
+++ b/ic2/core/block/BlockTileEntity.java | ||
@@ -111,7 +111,7 @@ | ||
private BlockTileEntity(String name, final ResourceLocation identifier) { | ||
super((BlockName)null, TeBlockRegistry.getInfo(identifier).getDefaultMaterial()); | ||
ModContainer modcontainer = Loader.instance().activeModContainer(); | ||
- Optional optional = Loader.instance().getActiveModList().stream().filter((mod) -> { | ||
+ Optional<ModContainer> optional = Loader.instance().getActiveModList().stream().filter((mod) -> { | ||
return identifier.getResourceDomain().equals(mod.getModId()); | ||
}).findFirst(); | ||
Loader loader = Loader.instance(); | ||
@@ -673,10 +673,10 @@ | ||
list.addAll(this.getDrops(world, pos, state, fortune)); | ||
} | ||
|
||
- public List<ItemStack> getDrops(IBlockAccess world, BlockPos pos, IBlockState state, int fortune) { | ||
- TileEntityBlock tileentityblock = getTe(world, pos); | ||
+ public List<ItemStack> getDrops(IBlockAccess blockAccess, BlockPos pos, IBlockState state, int fortune) { | ||
+ TileEntityBlock tileentityblock = getTe(blockAccess, pos); | ||
if (tileentityblock == null) { | ||
- World world = Util.getWorld(world); | ||
+ World world = Util.getWorld(blockAccess); | ||
if (world != null && world.isRemote || world == null && !IC2.platform.isSimulating()) { | ||
return new ArrayList<ItemStack>(); | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
11 changes: 11 additions & 0 deletions
11
...-Base/patches[2.8.164,2.8.165]/minecraft/ic2/core/block/invslot/InvSlotUpgrade.java.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- a/ic2/core/block/invslot/InvSlotUpgrade.java | ||
+++ b/ic2/core/block/invslot/InvSlotUpgrade.java | ||
@@ -31,7 +31,7 @@ | ||
private List<Redstone.IRedstoneModifier> redstoneModifiers = Collections.<Redstone.IRedstoneModifier>emptyList(); | ||
|
||
public static InvSlotUpgrade createUnchecked(TileEntityInventory base, String name, int count) { | ||
- return new InvSlotUpgrade((TileEntityInventory)((IUpgradableBlock)base), name, count); | ||
+ return new InvSlotUpgrade((TileEntityInventory & IUpgradableBlock)base, name, count); | ||
} | ||
|
||
public <T extends TileEntityInventory & IUpgradableBlock> InvSlotUpgrade(T base, String name, int count) { |
File renamed without changes.
File renamed without changes.
13 changes: 13 additions & 0 deletions
13
...8.165]/minecraft/ic2/core/block/machine/container/ContainerIndustrialWorkbench.java.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
--- a/ic2/core/block/machine/container/ContainerIndustrialWorkbench.java | ||
+++ b/ic2/core/block/machine/container/ContainerIndustrialWorkbench.java | ||
@@ -129,8 +129,8 @@ | ||
} | ||
|
||
public boolean canMergeSlot(ItemStack stack, Slot slot) { | ||
- for(Slot slot : this.outputs) { | ||
- if (slot.inventory == slot.inventory) { | ||
+ for(Slot output : this.outputs) { | ||
+ if (output.inventory == slot.inventory) { | ||
return false; | ||
} | ||
} |
File renamed without changes.
File renamed without changes.
41 changes: 41 additions & 0 deletions
41
...64,2.8.165]/minecraft/ic2/core/block/machine/tileentity/TileEntityBatchCrafter.java.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
--- a/ic2/core/block/machine/tileentity/TileEntityBatchCrafter.java | ||
+++ b/ic2/core/block/machine/tileentity/TileEntityBatchCrafter.java | ||
@@ -132,8 +132,9 @@ | ||
this.progress = 0; | ||
this.guiProgress = 0.0F; | ||
|
||
- for(final int i = 0; i < this.ingredientsRow.length; ++i) { | ||
- this.ingredientsRow[i] = new InvSlot(this, "ingredient[" + i + ']', InvSlot.Access.I, 1) { | ||
+ for(int i = 0; i < this.ingredientsRow.length; ++i) { | ||
+ int finalI = i; | ||
+ this.ingredientsRow[i] = new InvSlot(this, "ingredient[" + finalI + ']', InvSlot.Access.I, 1) { | ||
public boolean accepts(ItemStack ingredient) { | ||
IRecipe irecipe = TileEntityBatchCrafter.this.world.isRemote ? TileEntityBatchCrafter.this.findRecipe() : TileEntityBatchCrafter.this.recipe; | ||
if (irecipe == null) { | ||
@@ -141,14 +142,14 @@ | ||
} else { | ||
assert irecipe.matches(TileEntityBatchCrafter.this.crafting, TileEntityBatchCrafter.this.world); | ||
|
||
- ItemStack itemstack = TileEntityBatchCrafter.this.craftingGrid[i]; | ||
+ ItemStack itemstack = TileEntityBatchCrafter.this.craftingGrid[finalI]; | ||
|
||
boolean flag; | ||
try { | ||
- TileEntityBatchCrafter.this.craftingGrid[i] = ingredient; | ||
+ TileEntityBatchCrafter.this.craftingGrid[finalI] = ingredient; | ||
flag = irecipe.matches(TileEntityBatchCrafter.this.crafting, TileEntityBatchCrafter.this.world); | ||
} finally { | ||
- TileEntityBatchCrafter.this.craftingGrid[i] = itemstack; | ||
+ TileEntityBatchCrafter.this.craftingGrid[finalI] = itemstack; | ||
} | ||
|
||
return flag; | ||
@@ -157,7 +158,7 @@ | ||
|
||
public void onChanged() { | ||
super.onChanged(); | ||
- TileEntityBatchCrafter.this.ingredientChange(i); | ||
+ TileEntityBatchCrafter.this.ingredientChange(finalI); | ||
} | ||
}; | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.