-
Notifications
You must be signed in to change notification settings - Fork 578
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
[BUG] Chest inventory has too few player inventory slots #3031
Comments
Additionally, the last hotbar slot is shown as if it were a regular slot. |
Wouldn't it be the responsibility of the mod that increased hotbar size to also make the necessary changes so that chests display correctly? |
I've not changed the hotbar size, it is default size. |
No, the default hotbar size is 8 and it shows identical in the inventory as in a chest. I've just confirmed this myself. |
It isn't just the hotbar size; it looks like a mod is extending your inventory to be 9*4 rather than 8*4. It would be the responsibility of this mod to deal with chest formspecs, although we should maybe provide an API to make this easier. |
i3 extends the inventory width from the default 8 to 9. (It also has a setting to disable this and make the inventory width 8) |
The game should expose an API to adjust and get player inventory capacity and hotbar size, which should be used by formspecs and could be changed by mods. |
The engine already exposes such APIs. The hotbar (which also is engine configurable) is IMO unrelated; hotbar size could be used as inventory display width, but it shouldn't be. I think it should be sufficient to just make all formspecs showing the player inventory variable (and parameterize them in terms of the player inventory size). This won't be particularly pretty (esp. for 9*4 slots, since the last row will have just 4 slots then), but it will be better than just hiding slots. |
This is clearly a problem with the mods destroying the game too much. Please complain to the respective mod authors to fix these bugs. I recommend to close this issue as invalid. |
Indeed it is; however the issue on our end is that we don't really provide APIs to allow mod authors to change the inventory size without having to significantly duplicate MTG code. Strictly speaking such "dehardcoding" could be considered a feature though. |
When opening a chest, the chest doesn't show the last 4 slots of the player's inventory. It is annoying to not see items that are there.
Chest inventory (it omits 4 last player inventory slots):
Player inventory (it has items invisible in the chest formspec):
The text was updated successfully, but these errors were encountered: