1
0
Fork 0

fix unused armor slots showing up in gui

This commit is contained in:
Sen 2025-08-22 00:48:09 +02:00
parent 906517479f
commit ae0b11272d
Signed by: sen
GPG key ID: 3AC50A6F47D1B722
4 changed files with 4 additions and 5 deletions

View file

@ -1287,7 +1287,7 @@ public class Client implements IThreadListener {
int xPos = xoff * scale;
for(int index = 0; index < size; ++index) {
ItemStack itemstack = this.player.getStackInSlot(index);
if(itemstack != null && (width >= 20 || index == selected)) {
if(itemstack != null && (width >= 17 || index == selected)) {
GuiContainer.renderItemOverlay(itemstack,
xPos, by, null, index == this.player.getSelectedIndex() ? this.controller.getUseCooldown() : 0, this.controller.getUseCooldownMax(), scale);
}