Oxygen does not restore up to value set by LivingEntity#setMaximumAir()

    • Type: Bug
    • Resolution: Fixed
    • Priority: Minor
    • None
    • Affects Version/s: None
    • None
    • 1.18.1-R0.1
    • Yes

      Setting maximum air of an entity will work, but it will stop restoring oxygen when it reaches the vanilla maximum air level. Without regenerating to full, the feature becomes pointless aside from manually setting oxygen levels.

       

      Reproduction:

      • use LivingEntity#setMaximumAir(1000)
      • Constantly log the current air level of the entity
      • Observe that it never exceeds the vanilla maximum unless manually set

            Assignee:
            Marvin Rieple
            Reporter:
            FACEGUY
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: