Kingdom-of-The-Moon / FiguraRewriteRewrite

rewrite of the rewrite of figura
GNU Lesser General Public License v2.1
1 stars 1 forks source link

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 #56

Closed Gakuto1112 closed 1 year ago

Gakuto1112 commented 1 year ago

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".

  1. Have another Minecraft player or another Minecraft account.
  2. Install Figura to both of two players.
  3. Inject following code in host player's avatar to check host player's air volume.
    events.TICK:register(function ()
    print(player:getAir())
    end)
  4. Upload this avatar.
  5. Start multiplayer.
  6. Guest player turns on "Log non-avatar scripts" to see host player's avatar logs.
  7. Host player gets "water breathing" effect or change into creative mode.
  8. Host player dives into the water.
  9. 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