mirror of
https://github.com/GTNewHorizons/AE2FluidCraft-Rework.git
synced 2026-11-11 07:47:55 +00:00
uh
This commit is contained in:
1 parent
e69a0fc977
commit
8a99073d40
1 file changed
+22
@@ -8,6 +8,7 @@ import appeng.client.gui.AEBaseGui;
|
||||
import appeng.client.gui.widgets.GuiScrollbar;
|
||||
import appeng.core.AELog;
|
||||
import appeng.core.localization.GuiText;
|
||||
import appeng.integration.modules.NEI;
|
||||
import appeng.util.Platform;
|
||||
import com.glodblock.github.FluidCraft;
|
||||
import com.glodblock.github.client.gui.container.ContainerFluidCraftConfirm;
|
||||
@@ -483,6 +484,7 @@ public class GuiFluidCraftConfirm extends AEBaseGui {
|
||||
}
|
||||
|
||||
if (btn == this.cancel) {
|
||||
this.addMissingItemsToBookMark();
|
||||
FluidCraft.proxy.netHandler.sendToServer(new CPacketSwitchGuis(this.OriginalGui));
|
||||
}
|
||||
|
||||
@@ -509,4 +511,24 @@ public class GuiFluidCraftConfirm extends AEBaseGui {
|
||||
public ItemStack getHoveredStack() {
|
||||
return hoveredStack;
|
||||
}
|
||||
|
||||
protected void addMissingItemsToBookMark() {
|
||||
if (!this.missing.isEmpty() && isShiftKeyDown()) {
|
||||
for (IAEItemStack iaeItemStack : this.missing) {
|
||||
NEI.instance.addItemToBookMark(iaeItemStack.getItemStack());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public IItemList<IAEItemStack> getStorage() {
|
||||
return this.storage;
|
||||
}
|
||||
|
||||
public IItemList<IAEItemStack> getPending() {
|
||||
return this.pending;
|
||||
}
|
||||
|
||||
public IItemList<IAEItemStack> getMissing() {
|
||||
return this.missing;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user