[SPIGOT-6907] Oxygen does not restore up to value set by LivingEntity#setMaximumAir() Created: 22/Jan/22  Updated: 22/Jan/22  Resolved: 22/Jan/22

Status: Resolved
Project: Spigot
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: FACEGUY Assignee: Marvin Rieple
Resolution: Fixed Votes: 0
Labels: None

Version: 1.18.1-R0.1
Guidelines Read: Yes

 Description   

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


 Comments   
Comment by Marvin Rieple [ 22/Jan/22 ]

Made a PR for this: craftbukkit#997

Generated at Sun Mar 30 02:32:22 UTC 2025 using Jira 10.3.3#10030003-sha1:d220e3fefc8dfc6d47f522d3b9a20c1455e12b7b.