remove reflection in ModAndClassUtil (#406)

This commit is contained in:
danyadev authored and GitHub committed 2026-02-20 17:48:59 +01:00
1 parent a7fdb3ce7e
commit d97285ba52
4 files changed
+9 -106

No files matched your search

@@ -61,15 +61,12 @@ import appeng.util.item.AEFluidStack;
import appeng.util.item.AEItemStack;
import baubles.api.BaublesApi;
import codechicken.nei.recipe.StackInfo;
import cpw.mods.fml.common.Loader;
import cpw.mods.fml.common.ModContainer;
import cpw.mods.fml.common.registry.GameData;
import io.netty.buffer.ByteBuf;
public final class Util {
public static boolean isBaublesLoaded = Loader.isModLoaded("Baubles");
public static int drainItemPower(AEBaseContainer c, InventoryPlayer ip, int slot, int ticks, double pm,
IFluidPortableCell wt) {
if (slot != -1) {
@@ -204,7 +201,7 @@ public final class Util {
}
}
if (isBaublesLoaded) {
if (ModAndClassUtil.BAUBLES) {
IInventory handler = BaublesApi.getBaubles(player);
if (handler != null) {
invSize = handler.getSizeInventory();