From 7d9ab3e4a44c5d6859abb7eb40308ae4dad9c831 Mon Sep 17 00:00:00 2001 From: shedaniel Date: Fri, 13 Dec 2024 19:20:52 +0800 Subject: [PATCH] Fix cannot drag into favorites --- .../impl/client/gui/widget/region/EntryStacksRegionWidget.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/src/main/java/me/shedaniel/rei/impl/client/gui/widget/region/EntryStacksRegionWidget.java b/runtime/src/main/java/me/shedaniel/rei/impl/client/gui/widget/region/EntryStacksRegionWidget.java index 3606e15e1..1efa977a5 100644 --- a/runtime/src/main/java/me/shedaniel/rei/impl/client/gui/widget/region/EntryStacksRegionWidget.java +++ b/runtime/src/main/java/me/shedaniel/rei/impl/client/gui/widget/region/EntryStacksRegionWidget.java @@ -308,7 +308,7 @@ public boolean drop(DraggingContext context, DraggableComponent compo public Optional> checkDraggedStacks(DraggingContext context, DraggableStack stack) { EntrySerializer serializer = stack.getStack().getDefinition().getSerializer(); - if (serializer != null && stack instanceof RegionDraggableStack) { + if (serializer != null) { try { T regionEntry = stack instanceof RegionDraggableStack ? ((RegionDraggableStack) stack).getEntry().getEntry().copy() : listener.convertDraggableStack(context, stack);