Zeram Posted September 2, 2021 Share Posted September 2, 2021 public abstract class AbstractContainerScreen<T extends AbstractContainerMenu> extends Screen implements MenuAccess<T> { ... public void render(PoseStack p_97795_, int p_97796_, int p_97797_, float p_97798_) { ... for(int k = 0; k < this.menu.slots.size(); ++k) { if (this.isHovering(slot, (double)p_97796_, (double)p_97797_) && slot.isActive()) { ... int l = slot.x; int i1 = slot.y; renderSlotHighlight(p_97795_, l, i1, this.getBlitOffset(), this.getSlotColor(i1)); } } The this.getSlotColor(i1) is mapped on 'y' coordinate of the slot. It should rather be slot index 'k' (according to previous version mapping). version: net.minecraftforge:forge:1.17.1-37.0.51_mapped_official_1.17.1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.