Ability to fly persisting when it shouldn't

Started by Orandza on Sat, 07/30/2022 - 22:49

Topic category: Help with modding (Java Edition)

Last seen on 16:36, 21. Sep 2022
Joined Jul 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Ability to fly persisting when it shouldn't
Sat, 07/30/2022 - 22:49

So I made an effect that lets you fly around just like in creative mode. It works fine while it's on, but when the effect expires, the ability to fly persists until I quit and rejoin the world, while it should go away as soon as the effect itself wears off. I have this for the on effect active tick procedure - https://imgur.com/a/KYzP8SG

Any help with fixing this would be appreciated.