Jump to content

1.17.1 Wrong local method variables mapping


Zeram

Recommended Posts

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

Link to comment
Share on other sites

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.