mirror of
https://github.com/GTNewHorizons/NotEnoughItems.git
synced 2026-11-20 12:20:00 +00:00
Compare commits
22
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7fc80371c7 | ||
|
|
f5f696abba | ||
|
|
277c32b9e6 | ||
|
|
fbb0cdc81a | ||
|
|
991e166e0a | ||
|
|
d298c0e827 | ||
|
|
da16b40f36 | ||
|
|
651b59cba9 | ||
|
|
f922d7ef1e | ||
|
|
52ad6f38a5 | ||
|
|
8d118cb132 | ||
|
|
2590eec44a | ||
|
|
81a92a28f5 | ||
|
|
621ab621c7 | ||
|
|
1aa4d56100 | ||
|
|
dc35985ea0 | ||
|
|
bb8632a012 | ||
|
|
b361604422 | ||
|
|
02c97a05c3 | ||
|
|
d0785b5261 | ||
|
|
52ae4b2bd4 | ||
|
|
acacd13bd9 |
No files matched your search
@@ -10,6 +10,8 @@ import java.util.Map;
|
||||
import net.minecraft.client.gui.GuiScreen;
|
||||
import net.minecraft.client.gui.inventory.GuiContainer;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraftforge.fluids.FluidRegistry;
|
||||
import net.minecraftforge.fluids.FluidStack;
|
||||
import net.minecraftforge.oredict.OreDictionary;
|
||||
|
||||
import org.lwjgl.input.Mouse;
|
||||
@@ -205,9 +207,24 @@ public abstract class ShortcutInputHandler {
|
||||
|
||||
private static boolean copyItemStackID(ItemStack stackover) {
|
||||
if (stackover == null || stackover.getItem() == null) return false;
|
||||
GuiScreen.setClipboardString(
|
||||
stackover.getItem().delegate.name()
|
||||
+ (stackover.getItemDamage() != 0 ? "/" + stackover.getItemDamage() : ""));
|
||||
|
||||
String clipboard;
|
||||
|
||||
if (StackInfo.isFluidDisplayItem(stackover)) {
|
||||
final FluidStack fluid = StackInfo.getFluid(stackover);
|
||||
|
||||
if (fluid == null) {
|
||||
return false;
|
||||
}
|
||||
|
||||
clipboard = FluidRegistry.getDefaultFluidName(fluid.getFluid());
|
||||
} else {
|
||||
clipboard = stackover.getItem().delegate.name()
|
||||
+ (stackover.getItemDamage() != 0 ? "/" + stackover.getItemDamage() : "");
|
||||
}
|
||||
|
||||
GuiScreen.setClipboardString(clipboard);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
@@ -123,6 +123,11 @@ public class AutoCraftingManager {
|
||||
AutoCraftingManager.math = math;
|
||||
|
||||
if (AutoCraftingManager.math != null) {
|
||||
|
||||
if (NEIClientUtils.getGuiContainer() instanceof GuiRecipe<?>gui && gui.firstGui != null) {
|
||||
gui.mc.displayGuiScreen(gui.firstGui);
|
||||
}
|
||||
|
||||
ItemPanels.bookmarkPanel.clearTooltips();
|
||||
math.createMasterRoot();
|
||||
task.restart();
|
||||
|
||||
@@ -149,6 +149,7 @@ public class RecipeHandlerRef {
|
||||
if (overlayHandler != null && overlayHandler.canCraft(firstGui, this.handler, this.recipeIndex)) {
|
||||
|
||||
if (!firstGui.equals(firstGui.mc.currentScreen)) {
|
||||
if (!firstGui.mc.func_152345_ab()) return false;
|
||||
firstGui.mc.displayGuiScreen(firstGui);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user