mapping
This commit is contained in:
1 parent
5276061f04
commit
0b93101248
4 files changed
+7
-7
No files matched your search
@@ -30,12 +30,12 @@ public abstract class ContainerMixin
|
||||
|
||||
@Shadow protected abstract void endQuickCraft();
|
||||
|
||||
@Shadow public abstract ItemStack method_34255();
|
||||
@Shadow public abstract ItemStack getCursorStack();
|
||||
|
||||
@Inject( method = "internalOnSlotClick", at = @At(value = "HEAD"), cancellable = true)
|
||||
private void onThrowClick(int slotId, int clickData, SlotActionType actionType, PlayerEntity playerEntity, CallbackInfo ci)
|
||||
{
|
||||
if (actionType == SlotActionType.THROW && CarpetSettings.ctrlQCraftingFix && this.method_34255().isEmpty() /* playerEntity.getInventory().getCursorStack().isEmpty()*/ && slotId >= 0)
|
||||
if (actionType == SlotActionType.THROW && CarpetSettings.ctrlQCraftingFix && this.getCursorStack().isEmpty() && slotId >= 0)
|
||||
{
|
||||
ItemStack itemStack_1 = ItemStack.EMPTY;
|
||||
Slot slot_4 = slots.get(slotId);
|
||||
|
||||
Reference in new issue
Block a user