Compare commits

..
2 Commits
Author SHA1 Message Date
Martin Robertz cdfd3a5520 update 2024-05-17 23:39:44 +02:00
Socolio 896952731e Improvements and fixes 2024-05-17 14:26:49 +03:00
5 changed files with 3 additions and 24 deletions

No files matched your search

+2 -3
View File
@@ -1,7 +1,6 @@
// Add your dependencies here
dependencies {
implementation('com.github.GTNewHorizons:NotEnoughItems:2.6.5-GTNH:dev')
compileOnly('com.github.GTNewHorizons:GT5-Unofficial:5.09.48.37:dev')
compileOnly('com.github.GTNewHorizons:EnderIO:2.8.6:dev')
implementation('com.github.GTNewHorizons:NotEnoughItems:2.6.0-GTNH:dev')
compileOnly('com.github.GTNewHorizons:GT5-Unofficial:5.09.46.16:dev')
}
@@ -30,7 +30,6 @@ public class FindIt {
private boolean extraUtilitiesLoaded;
private boolean gregTechloaded;
private boolean enderIOloaded;
private SearchCooldownService cooldownService;
private BlockFindService blockFindService;
@@ -40,8 +39,6 @@ public class FindIt {
public void preInit(FMLPreInitializationEvent event) {
this.extraUtilitiesLoaded = Loader.isModLoaded("ExtraUtilities");
this.gregTechloaded = Loader.isModLoaded("gregtech");
this.enderIOloaded = Loader.isModLoaded("EnderIO");
FindItConfig.setup(event.getSuggestedConfigurationFile());
boolean isClient = event.getSide() == Side.CLIENT;
@@ -69,8 +66,4 @@ public class FindIt {
public static boolean isGregTechLoaded() {
return INSTANCE.gregTechloaded;
}
public static boolean isEnderIOLoaded() {
return INSTANCE.enderIOloaded;
}
}
@@ -13,7 +13,6 @@ public class FindItConfig {
public static boolean USE_PARTICLE_HIGHLIGHTER = false;
public static boolean SEARCH_ITEMS_ON_GROUND = true;
public static boolean SEARCH_IN_GT_PIPES = false;
public static boolean SEARCH_IN_ENDERIO_CONDUITS = false;
public static int ITEM_HIGHLIGHTING_DURATION = 10;
public static int BLOCK_HIGHLIGHTING_DURATION = 8;
@@ -46,12 +45,6 @@ public class FindItConfig {
"false",
"Search items & fluids in GT pipes").getBoolean();
SEARCH_IN_ENDERIO_CONDUITS = config.get(
Configuration.CATEGORY_GENERAL,
"SearchInEnderIOConduits",
"false",
"Search items & fluids in EnderIO conduits").getBoolean();
SEARCH_ITEMS_ON_GROUND = config.get(
Configuration.CATEGORY_GENERAL,
"SearchItemsOnGround",
@@ -41,7 +41,7 @@ public class FindItemRequest implements IMessage {
}
public boolean hasFluidStack() {
return targetFluidStack != null;
return targetFluidStack != null && targetFluidStack.amount > 0;
}
public boolean isFluidSatisfies(FluidStack fluid) {
@@ -19,7 +19,6 @@ import com.gtnh.findit.service.blockfinder.BlockFoundResponse;
import com.gtnh.findit.util.WorldUtils;
import cpw.mods.fml.relauncher.Side;
import crazypants.enderio.conduit.TileConduitBundle;
import gregtech.api.metatileentity.BaseMetaPipeEntity;
public class ItemFindService {
@@ -59,11 +58,6 @@ public class ItemFindService {
return false;
}
}
if (FindIt.isEnderIOLoaded()) {
if (!FindItConfig.SEARCH_IN_ENDERIO_CONDUITS && tileEntity instanceof TileConduitBundle) {
return false;
}
}
if (request.hasFluidStack()) {
if (tileEntity instanceof IFluidTank && request.isFluidSatisfies(((IFluidTank) tileEntity).getFluid())) {