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

[fixed] Spikes sometimes hiding behind grass #2278

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mugg91
Copy link
Contributor

@mugg91 mugg91 commented Dec 29, 2024

Status

  • READY: this PR is (to the best of your knowledge) ready to be incorporated into the game.

Description

Fixes #2270

This applies this.getSprite().SetZ(500); in onSetStatic() instead of applying it based on a tag in onTick() in code that is prone to behave differently between online and offline ( see #2277 ).

Applying it in onSetStatic() is already done by ladders.
Ladder.as applies this.getSprite().SetZ(-40); in its onSetStatic(), making it always be behind grass.
So since this method is already done, it should be acceptable to do it with spikes, to place them always in front of grass.

Tested in offline and online, works.

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

Successfully merging this pull request may close these issues.

Spikes are behind grass in online, but in front in offline
1 participant