BlockMenu#pushItem duplicates items
NCBPFluffyBear opened this issue ยท 3 comments
๐ Description (REQUIRED)
BlockMenu#pushItem bug:
If the output has a slot that is partially occupied and another slot that is free, the partially occupied slot will be maxed and the other slot will be set to the pushed item with the correct amount
This is what it looks like in game:
https://i.imgur.com/sIdsFJx.gif
(Courtesy of Panda)
๐ Steps to reproduce the Issue (REQUIRED)
API issue, but here is my code that I used.
if (inv.fits(clone, OUTPUT_SLOTS)) {
BlockStorage.addBlockInfo(b, "stored", "0");
inv.pushItem(clone, OUTPUT_SLOTS);
updateMenu(b, inv);
}
Looks clean and looked over by Linox and Biscuit on discord, determined to likely be a problem with API.
Per request, I added a debugging message to make sure it was not triggering multiple times:
๐ก Expected behavior (REQUIRED)
BlockMenu#pushItem should complete valid stacks, then insert the remaining items to the next available slot.
๐ Server Log
N/A
๐ /error-reports/ Folder
N/A
๐งญ Environment (REQUIRED)
- Server Software (Spigot/Paper): Paper
- Minecraft Version: 1.16.3
- Slimefun Version: RC-16 (This is version used in the POM, not the server version)
- Slimefun Server Version: DEV 698 (git de170)
- CS-CoreLib Version: v1.6.1
Test performed on a FluffyMachines build, API was not modified, and Riley encountered the same problem when coding InfinityExpansion
Your issue has been closed by an admin, it may fall under one or more of the following categories.
Please wait for an admin to tick off the points that apply.
- You did not follow our template. Please follow the Issue template to help us identify your issue more effectively.
- You did not provide any information about your versions (We absolutely need the exact version numbers that are installed on your Server, "latest" is not helpful)
- You did not provide a proper description to the problem. Try to write at least 4-6 sentences and/or provide screenshots or videos on how to reproduce this.
- We were unable to reproduce issue, if you think your issue still persists then please comment down below and give a better description on how to reproduce it.
- Your issue was posted in a foreign language, we only accept english issues on here.
- Your issue is not a bug, it is intended to work this way.
- Your issue is not really a bug, it is a limitation or simply something we have no control over.
- Your issue is not a bug, please only use this issue tracker to report bugs. Any other kind of communication should happen on discord.
- Your issue has already been reported before, it is a duplicate. Check the other issues first before posting!
- You posted an error without using pastebin. Please always post errors via pastebin otherwise they become nearly unreadable.
- You seem to be reporting multiple bugs at once. Please make a separate issue for each bug you encountered, so we can properly handle them individually.
- Your issue has already been fixed in a later version of Slimefun or CS-CoreLib, you should update.
- You are using an outdated and unsupported version of Slimefun / CS-CoreLib, again, you should update.
- You are using an unofficially modified build of Slimefun. We only support official versions of Slimefun - for obvious reasons.
- You are using an unsupported version of Minecraft. We only provide support for the Minecraft versions Slimefun was developed for, older versions are not supported anymore.
- You are using a "stable" version of Slimefun (prefixed with "RC - "), your issue may have been fixed in a development build, so we only accept bug reports from those.
- You are on the wrong issue tracker. We would like to remind you that this Issue Tracker is only for Slimefun. To report bugs on any addons, head to the corresponding issue tracker of that addon.
Please respond below, if you have any further questions.
Do not open a new Issue unless explicitly told otherwise, comment below or edit your post instead.
Make sure to check out our article on How to report bugs for even more information.
Changed dependency to use 4af3833 (latest), problem still occurs