Adapt to AE2 change

This commit is contained in:
Kogepan229 committed 2026-01-18 13:14:05 +09:00
1 parent ae2e402fee
commit a66d1424fc
1 file changed
+7 -1
@@ -24,6 +24,7 @@ import com.glodblock.github.util.NameConst;
import appeng.api.features.LevelState;
import appeng.api.storage.data.IAEStack;
import appeng.api.storage.data.IAEStackType;
import appeng.client.gui.GuiSub;
import appeng.client.gui.slots.VirtualMEPhantomSlot;
import appeng.client.gui.widgets.GuiTabButton;
@@ -61,7 +62,8 @@ public class GuiLevelMaintainer extends GuiSub {
27,
20 + i * 19,
this.cont.getTile().getAEStackInventory(),
i);
i,
GuiLevelMaintainer::acceptType);
slot.setShowAmount(true);
slot.setShowAmountAlways(true);
this.registerVirtualSlots(slot);
@@ -193,6 +195,10 @@ public class GuiLevelMaintainer extends GuiSub {
component[index].setState(state);
}
private static boolean acceptType(VirtualMEPhantomSlot slot, IAEStackType<?> type, int mouseButton) {
return true;
}
private class Component {
public boolean isEnable = false;