The air volume of the player still gets decreased from other Figura player even in situations where the air volume of the player is not decreased
Gakuto1112 opened this issue ยท 0 comments
Description
When avatar's host player has "water breathing" effect or is in creative mode, the value which can be gotten through player:getAir()
will not be decreased from host player, but the value still gets decreased even in this situation from other Figura players.
How to reproduce
In this case, avatar host player is called "host player" and the Figura player who can see host player's avatar is called "guest player".
- Have another Minecraft player or another Minecraft account.
- Install Figura to both of two players.
- Inject following code in host player's avatar to check host player's air volume.
events.TICK:register(function () print(player:getAir()) end)
- Upload this avatar.
- Start multiplayer.
- Guest player turns on "Log non-avatar scripts" to see host player's avatar logs.
- Host player gets "water breathing" effect or change into creative mode.
- Host player dives into the water.
- You will see host player's air volume decreasing from guest player even host player see the air volume of thierself is not decreased.
Enviroment
- Minecraft 1.19.3
- Fabric loader 0.14.12
- Fabric API 0.72.0+1.19.3
- Figura 0.1.0-rc.13