Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

made changes in BlockCommands.java to prevent adding of wrong number … #4999

Merged
merged 1 commit into from
Feb 27, 2022
Merged

Conversation

ujjman
Copy link
Contributor

@ujjman ujjman commented Feb 24, 2022

This PR fixes the bug that if we try to fetch blocks using give (block) (number of blocks) command, we get the blocks in multiples of 99 and not the number of blocks that we specify. Also, it fixes the wrong display of how many bloks are added to the inventory.

Steps to check PR

  1. Press F1 in game
  2. Get any block using give (block) (number of blocks)
  3. You will get the number of specified blocks.

@keturn keturn self-requested a review February 25, 2022 01:58
@keturn
Copy link
Member

keturn commented Feb 25, 2022

The change to the code makes sense to me.

I'll try to test it out on Friday.

Consider whether you want to add a unit test for this.

Copy link
Member

@keturn keturn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tests out good!

@keturn keturn merged commit a6e46e0 into MovingBlocks:develop Feb 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants