mirror of
https://github.com/GTNewHorizons/NotEnoughEnergistics.git
synced 2026-11-17 19:05:01 +00:00
Add a setting to keep ghost items after a click
This commit is contained in:
1 parent
8866310f92
commit
d077b0a1f6
3 files changed
+7
-2
No files matched your search
@@ -170,7 +170,9 @@ public class GuiEventHandler implements INEIGuiHandler {
|
||||
ItemStack copyStack = draggedStack.copy();
|
||||
copyStack.stackSize = useStackSizeFromNEI ? draggedStack.stackSize : draggedStackDefaultSize;
|
||||
NEENetworkHandler.getInstance().sendToServer(new PacketSlotStackChange(copyStack, slots));
|
||||
draggedStack.stackSize = 0;
|
||||
if (!NEEConfig.keepGhostitems) {
|
||||
draggedStack.stackSize = 0;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -29,6 +29,7 @@ public class NEEConfig {
|
||||
public static boolean drawHighlight = true;
|
||||
public static boolean allowSynchronousSwitchIngredient = true;
|
||||
public static boolean useStackSizeFromNEI = true;
|
||||
public static boolean keepGhostitems = true;
|
||||
public static boolean enableCraftAmountSettingGui = false;
|
||||
|
||||
public static int draggedStackDefaultSize = 1;
|
||||
@@ -75,6 +76,8 @@ public class NEEConfig {
|
||||
useStackSizeFromNEI = config.get(CATEGORY_OTHER_SETTINGS, "useStackSizeFromNEI", true,
|
||||
"Use the StackSize set by NEI").getBoolean();
|
||||
|
||||
keepGhostitems = config.get(CATEGORY_OTHER_SETTINGS, "keepGhostitems", true, "keep ghost items after click").getBoolean();
|
||||
|
||||
draggedStackDefaultSize = config.get(CATEGORY_OTHER_SETTINGS, "draggedStackDefaultSize", 1,
|
||||
"The default size of the dragged ItemStack when it is put in slot(Used when useStackSizeFromNEI is false)", 1, 64).getInt();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user