Skip to content

Commit 987e3ac

Browse files
committed
fix fluid slot interaction
1 parent b9acce7 commit 987e3ac

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/main/java/com/cleanroommc/modularui/widgets/slot/FluidSlot.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -176,11 +176,10 @@ public int getSlotHoverColor() {
176176
return ITheme.getDefault().getFluidSlotTheme().getSlotHoverColor();
177177
}
178178

179-
@NotNull
180179
@Override
181-
public Result onMouseTapped(int mouseButton) {
180+
public @NotNull Result onMousePressed(int mouseButton) {
182181
if (!this.syncHandler.canFillSlot() && !this.syncHandler.canDrainSlot()) {
183-
return Result.IGNORE;
182+
return Result.ACCEPT;
184183
}
185184
ItemStack cursorStack = Minecraft.getMinecraft().player.inventory.getItemStack();
186185
if (this.syncHandler.isPhantom() || (!cursorStack.isEmpty() && cursorStack.hasCapability(CapabilityFluidHandler.FLUID_HANDLER_ITEM_CAPABILITY, null))) {

0 commit comments

Comments
 (0)