Skip to content

Commit

Permalink
update gt and rename (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
NotAPenguin0 authored Sep 3, 2024
1 parent 1ffe44f commit 630a902
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion dependencies.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ dependencies {

compileOnly("com.github.GTNewHorizons:NotEnoughItems:2.6.22-GTNH:dev")
compileOnly("com.github.GTNewHorizons:Hodgepodge:2.5.42:dev") { transitive = false }
compileOnly("com.github.GTNewHorizons:GT5-Unofficial:5.09.48.150:dev") { transitive = false }
compileOnly("com.github.GTNewHorizons:GT5-Unofficial:5.09.49.56:dev") { transitive = false }
compileOnly("thaumcraft:Thaumcraft:1.7.10-4.2.3.5:dev")

//runtimeOnlyNonPublishable("com.github.GTNewHorizons:NotEnoughItems:2.6.22-GTNH:dev")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import static com.cleanroommc.modularui.ModularUI.isNEILoaded;

import codechicken.nei.recipe.StackInfo;
import gregtech.api.util.GT_Utility;
import gregtech.api.util.GTUtility;
import net.minecraft.item.ItemStack;
import net.minecraftforge.fluids.FluidContainerRegistry;
import net.minecraftforge.fluids.FluidStack;
Expand All @@ -27,7 +27,7 @@ public static FluidStack getFluidForRealItem(ItemStack itemStack) {
fluidStack = StackInfo.getFluid(itemStack);
}
if (isGT5ULoaded && fluidStack == null) {
fluidStack = GT_Utility.getFluidForFilledItem(itemStack, true);
fluidStack = GTUtility.getFluidForFilledItem(itemStack, true);
}
return fluidStack;
}
Expand All @@ -47,7 +47,7 @@ public static FluidStack getFluidForPhantomItem(ItemStack itemStack) {
fluidStack = StackInfo.getFluid(itemStack.copy());
}
if (isGT5ULoaded && fluidStack == null) {
fluidStack = GT_Utility.getFluidForFilledItem(itemStack, true);
fluidStack = GTUtility.getFluidForFilledItem(itemStack, true);
}
return fluidStack;
}
Expand All @@ -67,7 +67,7 @@ public static ItemStack fillFluidContainer(FluidStack fluidStack, ItemStack item

public static ItemStack fillFluidContainerWithoutIFluidContainerItem(FluidStack fluidStack, ItemStack itemStack) {
if (isGT5ULoaded) {
return GT_Utility.fillFluidContainer(fluidStack, itemStack, true, false);
return GTUtility.fillFluidContainer(fluidStack, itemStack, true, false);
}
return null;
}
Expand Down Expand Up @@ -97,7 +97,7 @@ public static ItemStack getContainerForFilledItem(ItemStack itemStack) {

public static ItemStack getContainerForFilledItemWithoutIFluidContainerItem(ItemStack itemStack) {
if (isGT5ULoaded) {
return GT_Utility.getContainerForFilledItem(itemStack, false);
return GTUtility.getContainerForFilledItem(itemStack, false);
}
return null;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
import com.cleanroommc.modularui.value.sync.SyncHandler;
import com.cleanroommc.modularui.value.sync.ValueSyncHandler;
import com.cleanroommc.modularui.widget.Widget;
import gregtech.api.util.GT_Utility;
import gregtech.api.util.GTUtility;
import net.minecraft.client.Minecraft;
import net.minecraft.item.ItemStack;
import net.minecraftforge.fluids.FluidContainerRegistry;
Expand Down Expand Up @@ -274,7 +274,7 @@ protected void setPhantomValue(@NotNull ItemStack draggedStack) {
@Override
public @Nullable ItemStack getStackForNEI() {
if (isGT5ULoaded) {
return GT_Utility.getFluidDisplayStack(getFluidStack(), false);
return GTUtility.getFluidDisplayStack(getFluidStack(), false);
}
return null;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

import com.cleanroommc.modularui.widget.Widget;

import gregtech.api.util.GT_Utility;
import gregtech.api.util.GTUtility;

import net.minecraft.client.Minecraft;
import net.minecraft.item.ItemStack;
Expand Down Expand Up @@ -291,7 +291,7 @@ protected void setPhantomValue(@NotNull ItemStack draggedStack) {
@Override
public @Nullable ItemStack getStackForNEI() {
if (isGT5ULoaded) {
return GT_Utility.getFluidDisplayStack(getFluidStack(), false);
return GTUtility.getFluidDisplayStack(getFluidStack(), false);
}
return null;
}
Expand Down

0 comments on commit 630a902

Please sign in to comment.