Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-81763

Minecraft Client thinks all potion effects are non-ambient

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Incomplete
    • Affects Version/s: Minecraft 1.8.7
    • Fix Version/s: None
    • Environment:
      Java 8 (Packaged with MC in .msi)
      Windows 8.1
    • Confirmation Status:
      Unconfirmed

      Description

      Note: SRG names are used and probably differ from the real names of MC classes/methods/etc

      Based on MCP inspection, the current Minecraft Client receives information from the server about potion effect updates via packets of type S1DPacketEntityEffect. These packets are then transformed back into PotionEffect s which are available to the client. However, S1DPacketEntityEffect does not carry the effect isAmbient property... it is ignored, and so the client incorrectly thinks that all effects are non-ambient.

      This can be tested by any MC dev or person with MCP using System.out. First, get a reference to the player (Minecraft.getMinecraft().thePlayer). Then, while the player is within the range of a beacon and is receiving an effect, print out the Collection returned from thePlayer.getActivePotionEffects() (or write the entity to a new NBTTagCompound and print that out instead). You will notice that the Ambient property of every effect is incorrectly set to 0b / false.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              buggy1 Withheld Withheld
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: