Skip to content

Commit 7987c6a

Browse files
committed
Update deps and bump min neo version to 21.0.28-beta. Also made the following fixes while making things compile against breaking changes:
- Fixed the grav module not providing flight - Fixed atomic disassembler and meka tool not providing any damage in newer Neo versions - Rerun datagen to make the AE2 recipe integration function again - Register more dummy classes to CraftTweaker so that it is able to properly resolve all the recipe managers we expose
1 parent 95623a6 commit 7987c6a

File tree

125 files changed

+447
-369
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

125 files changed

+447
-369
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ of things that we haven't finished porting yet.
2929
## Known Bugs/Things that aren't done being ported yet ##
3030
- Options in the Module Tweaker that have side effects don't currently have those side effects displayed
3131
- When breaking and placing blocks that have fluid item input slots, they do not persist whether the item was actively being drained or whether it was being filled
32-
- The Gravitational Modulation Unit does not currently provide flight
32+
- Fixed (Upcoming 10.6.2): The Gravitational Modulation Unit does not currently provide flight
3333
- Fixed (Upcoming 10.6.2): Resistive Heaters do not keep their set Energy Usage when breaking and placing again
3434
- Fixed (Upcoming 10.6.2): Bins forget if they are locked and what they are locked too if broken and placed
3535
- Fixed (Upcoming 10.6.2): The QIO Dashboard does not persist items stored in crafting windows when broken

annotation-processor/src/main/java/mekanism/builder/ComputerHandlerBuilder.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
import java.util.Collections;
1717
import java.util.HashMap;
1818
import java.util.List;
19+
import java.util.Locale;
1920
import java.util.Map;
2021
import java.util.Map.Entry;
2122
import java.util.Objects;
@@ -256,7 +257,7 @@ private void handleAtWrappingComputerMethod(Element annotatedElement, String ann
256257
.orElse(null);
257258
if (unformattedDescription != null) {
258259
//format it
259-
methodDescription = String.format(unformattedDescription, docPlaceholder);
260+
methodDescription = String.format(Locale.ROOT, unformattedDescription, docPlaceholder);
260261
}
261262
}
262263

build.gradle

Lines changed: 16 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ repositories { RepositoryHandler handler ->
328328
filter.includeGroup('org.openzen.zencode')
329329
})
330330
exclusiveRepo(handler, 'https://maven.terraformersmc.com/', 'dev.emi')
331-
exclusiveRepo(handler, 'https://maven.theillusivec4.top/', 'top.theillusivec4.curios')
331+
exclusiveRepo(handler, 'https://maven.octo-studios.com/releases/', 'top.theillusivec4.curios')
332332
exclusiveRepo(handler, 'https://maven.tterrag.com/', 'team.chisel.ctm')
333333
exclusiveRepo(handler, 'https://squiddev.cc/maven/', 'cc.tweaked', 'org.squiddev')
334334
exclusiveRepo(handler, 'https://dogforce-games.com/maven/', 'dev.gigaherz.jsonthings')
@@ -360,45 +360,35 @@ dependencies {
360360
//We use https://github.com/jqwik-team/jqwik to allow for implementing property based testing
361361
testImplementation("net.jqwik:jqwik:${jqwik_version}")
362362

363-
compileOnly("mezz.jei:jei-${previous_minor_minecraft_version}-common-api:${jei_version}")
364-
compileOnly("mezz.jei:jei-${previous_minor_minecraft_version}-neoforge-api:${jei_version}")
363+
compileOnly("mezz.jei:jei-${minecraft_version}-common-api:${jei_version}")
364+
compileOnly("mezz.jei:jei-${minecraft_version}-neoforge-api:${jei_version}")
365365
if (recipe_viewer == 'jei' || recipe_viewer == 'hybrid') {
366-
//TODO: Re-enable when JEI updates
367-
//localRuntime("mezz.jei:jei-${previous_minor_minecraft_version}-neoforge:${jei_version}")
366+
localRuntime("mezz.jei:jei-${minecraft_version}-neoforge:${jei_version}")
368367
}
369368

370-
compileOnly("dev.emi:emi-neoforge:${emi_version}+${previous_minor_minecraft_version}:api")
371-
def emi = "dev.emi:emi-neoforge:${emi_version}+${previous_minor_minecraft_version}"
369+
compileOnly("dev.emi:emi-neoforge:${emi_version}+${minecraft_version}:api")
370+
def emi = "dev.emi:emi-neoforge:${emi_version}+${minecraft_version}"
372371
//TODO: Re-evaluate (https://github.com/emilyploszaj/emi/issues/537) might allow us to not have to do this
373372
//Compile against full emi in datagen
374373
datagenMainCompileOnly(emi)
375-
//TODO: Re-enable when EMI updates
376-
/*if (recipe_viewer == 'emi' || recipe_viewer == 'hybrid') {
374+
if (recipe_viewer == 'emi' || recipe_viewer == 'hybrid') {
377375
localRuntime(emi)
378376
} else {
379377
//We still need it to load in datagen regardless of if we are using emi or a different viewer so that we can access EMI related objects
380378
datagenMainRuntimeOnly(emi)
381-
}*/
379+
}
382380

383-
//TODO: Re-enable once an update is released for the current MC version
384-
//localRuntime("team.chisel.ctm:CTM:${minecraft_version}-${ctm_version}")
381+
localRuntime("team.chisel.ctm:CTM:${minecraft_version}-${ctm_version}")
385382

386-
//TODO: Remove having to specify these as non transitive once https://github.com/McJtyMods/TheOneProbe/issues/548 is fixed
387-
compileOnly("mcjty.theoneprobe:theoneprobe:${top_version}:api") {
388-
transitive = false
389-
}
390-
//TODO: Re-enable once it doesn't cause connection issues on servers
391-
/*localRuntime("mcjty.theoneprobe:theoneprobe:${top_version}") {
392-
transitive = false
393-
}*/
383+
compileOnly("mcjty.theoneprobe:theoneprobe:${top_version}:api")
384+
localRuntime("mcjty.theoneprobe:theoneprobe:${top_version}")
394385
compileOnly("curse.maven:jade-api-324717:${jade_api_id}")
395386
localRuntime("curse.maven:jade-324717:${jade_id}")
396387
compileOnly("mcp.mobius.waila:wthit-api:neo-${wthit_version}")
397388

398-
def crt = "com.blamejared.crafttweaker:CraftTweaker-neoforge-${previous_minor_minecraft_version}:${crafttweaker_version}"
389+
def crt = "com.blamejared.crafttweaker:CraftTweaker-neoforge-${minecraft_version}:${crafttweaker_version}"
399390
compileOnly(crt)
400-
//TODO: Re-enable when CrT updates
401-
//localRuntime(crt)
391+
localRuntime(crt)
402392
def jeiTweaker = "com.blamejared.jeitweaker:JeiTweaker-forge-1.20.1:${jeitweaker_version}"
403393
compileOnly(jeiTweaker)
404394
//TODO: Re-enable when it updates
@@ -418,13 +408,12 @@ dependencies {
418408
compileOnly("curse.maven:female-gender-forge-481655:${wildfire_gender_mod_id}")
419409

420410
//Dependencies for data generators for mod compat reference
421-
//TODO: Switch back to datagenMainImplementation when it updated
422-
datagenMainCompileOnly("appeng:appliedenergistics2-neoforge:${ae2_version}")
411+
datagenMainImplementation("appeng:appliedenergistics2-neoforge:${ae2_version}")
423412
datagenMainRuntimeOnly("com.github.glitchfiend:GlitchCore-neoforge:${minecraft_version}-${glitchcore_version}")
424413
datagenMainRuntimeOnly("com.github.glitchfiend:TerraBlender-neoforge:${minecraft_version}-${terrablender_version}")
425414
datagenMainImplementation("com.github.glitchfiend:BiomesOPlenty-neoforge:${minecraft_version}-${biomesoplenty_version}")
426-
//TODO - 1.20.2: Switch back to datagenMainImplementation
427-
datagenMainCompileOnly("curse.maven:farmers-delight-398521:${farmers_delight_id}")
415+
//TODO: Re-enable and implement after it is updated
416+
//datagenMainImplementation("curse.maven:farmers-delight-398521:${farmers_delight_id}")
428417
//TODO - 1.20.2: Re-enable after projecte is updated
429418
//datagenMainRuntimeOnly("curse.maven:projecte-226410:${projecte_id}")
430419

buildSrc/src/main/groovy/mekanism/OptimizePng.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class OptimizePng extends DefaultTask {
4040
}
4141
long newSize = file.length()
4242
if (newSize < size) {
43-
System.out.format('Reduced File size of %s from %d bytes to %d bytes (reduced by %.2f%%)\n',
43+
System.out.format(Locale.ROOT, 'Reduced File size of %s from %d bytes to %d bytes (reduced by %.2f%%)\n',
4444
file, size, newSize, ((double) (size - newSize)) / ((double) size) * 100.0)
4545
}
4646
}

gradle.properties

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ minecraft_version=1.21
99
previous_minecraft_version=1.20.4
1010
previous_minor_minecraft_version=1.20.6
1111
loader_version_range=[4,)
12-
forge_version=21.0.8-beta
12+
forge_version=21.0.29-beta
1313
mod_version=10.6.1
1414
#This determines the minimum version of forge required to use Mekanism
1515
# Only bump it whenever we need access to a feature in forge that is not available in earlier versions
16-
forge_version_range=[21.0.8-beta,)
16+
forge_version_range=[21.0.28-beta,)
1717
minecraft_version_range=[1.21]
1818
#This specifies what type of release it will be uploaded to CurseForge and Modrinth as
1919
# options are: alpha, beta, release
@@ -25,7 +25,7 @@ jqwik_version=1.8.5
2525

2626
#NeoGradle Settings
2727
neogradle.subsystems.parchment.minecraftVersion=1.20.6
28-
neogradle.subsystems.parchment.mappingsVersion=2024.06.02
28+
neogradle.subsystems.parchment.mappingsVersion=2024.06.16
2929
neogradle.subsystems.conventions.sourcesets.enabled=false
3030

3131
#misc settings
@@ -36,10 +36,15 @@ recipe_viewer=emi
3636
yamlops_version=1.2.0
3737

3838
#Mod dependencies
39+
crafttweaker_version=20.0.6
40+
ctm_version=1.2.0+1
41+
curios_version=9.0.2+1.21
42+
emi_version=1.1.7
3943
jade_api_id=5427895
40-
jade_id=5427817
44+
jade_id=5444008
45+
jei_version=19.0.0.9
4146
top_version=1.21_neo-12.0.0-1
42-
wthit_version=12.1.2
47+
wthit_version=12.2.1
4348

4449
#Mod dependency min version ranges
4550

@@ -48,18 +53,14 @@ wthit_version=12.1.2
4853

4954

5055
#Mod dependencies for recipes (only used by our data generators)
51-
biomesoplenty_version=21.0.0.4
56+
ae2_version=19.0.4-alpha
57+
biomesoplenty_version=21.0.0.7
5258
glitchcore_version=2.0.0.1
5359
terrablender_version=4.0.0.1
5460

5561
#Outdated mod dependencies
5662
cc_tweaked_version=1.111.0
57-
crafttweaker_version=19.0.10
58-
curios_version=8.0.0+1.20.6
59-
ctm_version=1.1.7+11
60-
emi_version=1.1.6
6163
flux_networks_id=5234697
62-
jei_version=18.0.0.62
6364
jeitweaker_version=8.0.5
6465
json_things_version=0.10.0
6566
oc2_id=3896581
@@ -68,6 +69,5 @@ recipe_stages_version=8.0.0.2
6869
wildfire_gender_mod_id=5357649
6970

7071
#Outdated mod dependencies for recipes
71-
ae2_version=18.1.3-alpha
7272
farmers_delight_id=5051242
7373
projecte_id=4860859

src/api/java/mekanism/api/math/FloatingLong.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -880,7 +880,7 @@ public FloatingLong divide(double toDivide) {
880880
*/
881881
public double divideToLevel(FloatingLong toDivide) {
882882
//TODO: Optimize out creating another object
883-
return toDivide.isZero() || greaterThan(toDivide) ? 1 : divide(toDivide).doubleValue();
883+
return toDivide.isZero() || greaterOrEqual(toDivide) ? 1 : divide(toDivide).doubleValue();
884884
}
885885

886886
/**

0 commit comments

Comments
 (0)