Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set attribute gets stuck when leaving game #21

Open
Liiw opened this issue Mar 10, 2020 · 0 comments
Open

Set attribute gets stuck when leaving game #21

Liiw opened this issue Mar 10, 2020 · 0 comments

Comments

@Liiw
Copy link

Liiw commented Mar 10, 2020

I have a simple effect for limiting carry capacity. It changes player speed attribute:

{ "effects": [ { "type": "attribute", "effect":"generic.movementSpeed", "min": 1, "max": 500, "percent": true, "id": "effect.moveSlowdown", "amount":-0.05, "modifierType":0 }, { "type": "attribute", "effect":"generic.movementSpeed", "min": 1.1, "max": 500, "percent": true, "id": "effect.moveStop", "amount":-0.05, "modifierType":0 } ] }

If the player has the first effect on (carry capacity exceeded) and is moving at half speed and then logs out and closes the game, this attribute gets stuck to them. If the player relaunches the game and joins the same world, the speed is halved even when not carrying anything. The only solution now is death.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant