Don't require holding shift to move items when overlaying recipe (#348)

* updateBuildScript

* Remove redundant public modifier

* Don't require holding shift to move items when overlaying recipe
This commit is contained in:
miozune authored and GitHub committed 2023-02-09 11:21:30 +01:00
1 parent 6d0f83c499
commit e20756a196
5 files changed
+182 -9

No files matched your search

@@ -471,6 +471,7 @@ public abstract class GuiRecipe<H extends IRecipeHandler> extends GuiContainer i
}
protected void overlayRecipe(int recipe, final boolean shift) {
boolean moveItems = shift || !NEIClientConfig.requireShiftForOverlayRecipe();
if (handler == null || !handler.hasOverlay(firstGui, firstGui.inventorySlots, recipe)) {
mc.displayGuiScreen(firstGui);
return;
@@ -479,8 +480,8 @@ public abstract class GuiRecipe<H extends IRecipeHandler> extends GuiContainer i
final IOverlayHandler overlayHandler = handler.getOverlayHandler(firstGui, recipe);
mc.displayGuiScreen(firstGui);
if (renderer == null || shift) {
overlayHandler.overlayRecipe(firstGui, currenthandlers.get(recipetype), recipe, shift);
if (renderer == null || moveItems) {
overlayHandler.overlayRecipe(firstGui, currenthandlers.get(recipetype), recipe, moveItems);
} else {
LayoutManager.overlayRenderer = renderer;
}