mirror of
https://github.com/GTNewHorizons/FindIt.git
synced 2026-11-24 10:14:21 +00:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ab6c722369 | ||
|
|
b0c4b81d5f | ||
|
|
b3c002b42b | ||
|
|
d78625b514 | ||
|
|
511b388b83 | ||
|
|
9278283ae8 |
No files matched your search
+10
-10
@@ -1,21 +1,21 @@
|
||||
// Add your dependencies here
|
||||
|
||||
dependencies {
|
||||
implementation('com.github.GTNewHorizons:NotEnoughItems:2.6.42-GTNH:dev')
|
||||
implementation('com.github.GTNewHorizons:NotEnoughItems:2.7.43-GTNH:dev')
|
||||
|
||||
compileOnly('com.github.GTNewHorizons:GT5-Unofficial:5.09.50.49:dev')
|
||||
compileOnly('com.github.GTNewHorizons:EnderIO:2.8.19:dev')
|
||||
compileOnly('com.github.GTNewHorizons:Draconic-Evolution:1.3.11.GTNH:dev')
|
||||
compileOnly('com.github.GTNewHorizons:ForestryMC:4.9.16:dev')
|
||||
compileOnly('com.github.GTNewHorizons:AdventureBackpack2:1.2.3-GTNH:dev')
|
||||
compileOnly("com.github.GTNewHorizons:ProjectRed:4.10.5-GTNH:dev")
|
||||
compileOnly("com.github.GTNewHorizons:Minecraft-Backpack-Mod:2.4.3-GTNH:dev")
|
||||
compileOnly('com.github.GTNewHorizons:GT5-Unofficial:5.09.51.282:dev')
|
||||
compileOnly('com.github.GTNewHorizons:EnderIO:2.9.12:dev')
|
||||
compileOnly('com.github.GTNewHorizons:Draconic-Evolution:1.4.18-GTNH:dev')
|
||||
compileOnly('com.github.GTNewHorizons:ForestryMC:4.10.7:dev')
|
||||
compileOnly('com.github.GTNewHorizons:AdventureBackpack2:1.3.9-GTNH:dev')
|
||||
compileOnly("com.github.GTNewHorizons:ProjectRed:4.11.4-GTNH:dev")
|
||||
compileOnly("com.github.GTNewHorizons:Minecraft-Backpack-Mod:2.5.0-GTNH:dev")
|
||||
compileOnly("curse.maven:thaumcraft-nei-plugin-225095:2241913")
|
||||
compileOnly("thaumcraft:Thaumcraft:1.7.10-4.2.3.5:dev")
|
||||
|
||||
// For testing in dev environment.
|
||||
// runtimeOnlyNonPublishable('com.github.GTNewHorizons:StorageDrawers:2.0.3-GTNH')
|
||||
// runtimeOnlyNonPublishable("com.github.GTNewHorizons:waila:1.8.1")
|
||||
// runtimeOnlyNonPublishable('com.github.GTNewHorizons:StorageDrawers:2.1.0-GTNH')
|
||||
// runtimeOnlyNonPublishable("com.github.GTNewHorizons:waila:1.8.4")
|
||||
// runtimeOnlyNonPublishable('thaumcraft:Thaumcraft:1.7.10-4.2.3.5:dev')
|
||||
// runtimeOnlyNonPublishable("com.github.GTNewHorizons:Baubles:1.0.4:dev")
|
||||
// runtimeOnlyNonPublishable('curse.maven:thaumcraft-nei-plugin-225095:2241913')
|
||||
|
||||
+1
-1
@@ -14,7 +14,7 @@ modId = findit
|
||||
modGroup = com.gtnh.findit
|
||||
|
||||
# Whether to use modGroup as the maven publishing group.
|
||||
# Due to a history of using JitPack, the default is com.github.GTNewHorizons for all mods.
|
||||
# When false, com.github.GTNewHorizons is used.
|
||||
useModGroupForPublishing = false
|
||||
|
||||
# Updates your build.gradle and settings.gradle automatically whenever an update is available.
|
||||
|
||||
Vendored
BIN
Binary file not shown.
+1
-1
@@ -1,6 +1,6 @@
|
||||
distributionBase=GRADLE_USER_HOME
|
||||
distributionPath=wrapper/dists
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.9-bin.zip
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.13-bin.zip
|
||||
networkTimeout=10000
|
||||
validateDistributionUrl=true
|
||||
zipStoreBase=GRADLE_USER_HOME
|
||||
|
||||
@@ -86,8 +86,7 @@ done
|
||||
# shellcheck disable=SC2034
|
||||
APP_BASE_NAME=${0##*/}
|
||||
# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036)
|
||||
APP_HOME=$( cd -P "${APP_HOME:-./}" > /dev/null && printf '%s
|
||||
' "$PWD" ) || exit
|
||||
APP_HOME=$( cd -P "${APP_HOME:-./}" > /dev/null && printf '%s\n' "$PWD" ) || exit
|
||||
|
||||
# Use the maximum available, or set MAX_FD != -1 to use that value.
|
||||
MAX_FD=maximum
|
||||
@@ -206,7 +205,7 @@ fi
|
||||
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
|
||||
|
||||
# Collect all arguments for the java command:
|
||||
# * DEFAULT_JVM_OPTS, JAVA_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments,
|
||||
# * DEFAULT_JVM_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments,
|
||||
# and any embedded shellness will be escaped.
|
||||
# * For example: A user cannot expect ${Hostname} to be expanded, as it is an environment variable and will be
|
||||
# treated as '${Hostname}' itself on the command line.
|
||||
|
||||
+1
-1
@@ -17,7 +17,7 @@ pluginManagement {
|
||||
}
|
||||
|
||||
plugins {
|
||||
id 'com.gtnewhorizons.gtnhsettingsconvention' version '1.0.27'
|
||||
id 'com.gtnewhorizons.gtnhsettingsconvention' version '1.0.38'
|
||||
}
|
||||
|
||||
|
||||
@@ -52,7 +52,7 @@ public class FindIt {
|
||||
@Mod.EventHandler
|
||||
public void preInit(FMLPreInitializationEvent event) {
|
||||
this.isExtraUtilitiesLoaded = Loader.isModLoaded("ExtraUtilities");
|
||||
this.isGregTechLoaded = Loader.isModLoaded("gregtech");
|
||||
this.isGregTechLoaded = Loader.isModLoaded("gregtech") && !Loader.isModLoaded("gregapi");
|
||||
this.isEnderIOLoaded = Loader.isModLoaded("EnderIO");
|
||||
this.cooldownService = new SearchCooldownService();
|
||||
|
||||
|
||||
@@ -32,7 +32,7 @@ public class ThaumcraftProvider implements IStackFilterProvider {
|
||||
if (!(item instanceof ItemAspect || item instanceof IEssentiaContainerItem)) return false;
|
||||
|
||||
AspectList stackAspects = ItemAspect.getAspects(stack);
|
||||
if (stackAspects.size() != 1) return false;
|
||||
if (stackAspects == null || stackAspects.size() != 1) return false;
|
||||
|
||||
Aspect stackAspect = stackAspects.getAspects()[0];
|
||||
|
||||
@@ -43,12 +43,16 @@ public class ThaumcraftProvider implements IStackFilterProvider {
|
||||
@Override
|
||||
public IStackFilter getFilter(EntityPlayer player, TileEntity tileEntity) {
|
||||
if (!(tileEntity instanceof IAspectContainer aspectContainer)) return null;
|
||||
return new AspectStackFilter(aspectContainer.getAspects());
|
||||
AspectList aspects = aspectContainer.getAspects();
|
||||
if (aspects == null) return null;
|
||||
return new AspectStackFilter(aspects);
|
||||
}
|
||||
|
||||
@Override
|
||||
public IStackFilter getFilter(EntityPlayer player, ItemStack stack) {
|
||||
if (!(stack.getItem() instanceof IEssentiaContainerItem containerItem)) return null;
|
||||
return new AspectStackFilter(containerItem.getAspects(stack));
|
||||
AspectList aspects = containerItem.getAspects(stack);
|
||||
if (aspects == null) return null;
|
||||
return new AspectStackFilter(aspects);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user