diff --git a/gradle.properties b/gradle.properties index 70f72c0..e58f6ca 100644 --- a/gradle.properties +++ b/gradle.properties @@ -3,7 +3,7 @@ modName = NotEnoughEnergistics # This is a case-sensitive string to identify your mod. Convention is to use lower case. modId = neenergistics -modVersion=1.3.8 +modVersion=1.3.9 modGroup = com.github.vfyjxf.nee diff --git a/src/main/java/com/github/vfyjxf/nee/client/GuiEventHandler.java b/src/main/java/com/github/vfyjxf/nee/client/GuiEventHandler.java index 1ad9e5c..7970539 100644 --- a/src/main/java/com/github/vfyjxf/nee/client/GuiEventHandler.java +++ b/src/main/java/com/github/vfyjxf/nee/client/GuiEventHandler.java @@ -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; } } diff --git a/src/main/java/com/github/vfyjxf/nee/config/NEEConfig.java b/src/main/java/com/github/vfyjxf/nee/config/NEEConfig.java index 3b49986..8edf1fb 100644 --- a/src/main/java/com/github/vfyjxf/nee/config/NEEConfig.java +++ b/src/main/java/com/github/vfyjxf/nee/config/NEEConfig.java @@ -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(); }