WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Conversation

@cjapar2
Copy link

@cjapar2 cjapar2 commented Jun 13, 2023

Fixes issue #2677.

Added the following if-statement to check if the current stack on the cursor is less than the maximum stack allowed. This makes it so that the game doesn't unnecessarily try to give you more of the item than it can. As a result, the "Give Air" message does not appear in the chat and console log.

if (player.inventoryMenu.getCarried().getCount() < player.inventoryMenu.getCarried().getMaxStackSize()) {
	Network.sendPacketToServer(packet);
}

@CLAassistant
Copy link

CLAassistant commented Jun 13, 2023

CLA assistant check
All committers have signed the CLA.

@mezz mezz changed the base branch from 1.20 to 1.18.1 June 17, 2023 03:34
@mezz
Copy link
Owner

mezz commented Jun 17, 2023

Thanks for contributing!
Your fix seems to target setHotbarStack, is that really what fixes the bug described in the issue?

Also if you want to fix this in 1.18.2, the normal branch to use is 1.18
I just have the 1.18.1 branch for that specific version but it's not used by many people.

@mezz mezz changed the base branch from 1.18.1 to 1.18 June 17, 2023 18:32
@mezz mezz changed the base branch from 1.18 to 1.18.1 June 17, 2023 18:32
@github-actions
Copy link

github-actions bot commented Dec 3, 2025

This has been automatically marked as stale because it has not had recent activity, and will be closed if no further activity occurs. If this was overlooked, forgotten, or should remain open for any other reason, please reply here to call attention to it and remove the stale status. Thank you for your contributions.

@github-actions github-actions bot added the stale label Dec 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants