This commit is contained in:
gnembon committed 2021-02-09 00:16:07 -04:00
1 parent 6108cdce23
commit 257aca4254
4 files changed
+13 -14

No files matched your search

@@ -27,7 +27,7 @@ public abstract class ContainerMixin
@Shadow @Final public DefaultedList<Slot> slots;
@Inject( method = "removeStack", at = @At(value = "HEAD"), cancellable = true)
@Inject( method = "internalOnSlotClick", at = @At(value = "HEAD"), cancellable = true)
private void onThrowClick( int slotId, int clickData, SlotActionType actionType, PlayerEntity playerEntity, CallbackInfoReturnable<ItemStack> cir)
{
if (actionType == SlotActionType.THROW && CarpetSettings.ctrlQCraftingFix && playerEntity.getInventory().getCursorStack().isEmpty() && slotId >= 0)