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

Clarify which armorstand changes were implemented in Paper build 274 #3401

Closed
Shynixn opened this issue May 19, 2020 · 7 comments
Closed

Clarify which armorstand changes were implemented in Paper build 274 #3401

Shynixn opened this issue May 19, 2020 · 7 comments

Comments

@Shynixn
Copy link

Shynixn commented May 19, 2020

What behaviour is expected:

Armorstands tick and work in the same way as in Paper build 273

What behaviour is observed:

The custom armorstand entity using heavy NMS code in my plugin BlockBall started to fall through the map and is no longer able to move. I have debugged my plugin but I did not discover any obvious changes.

Steps/models to reproduce:

~

Plugin list:

BlockBall.jar

Paper build number:

git-Paper-274 (MC: 1.15.2)

Anything else:

Hello!

Can you please clarify or show me the changesets of Paper build 274? I have received multiple reports that my plugin no longer works and I would like to continue to support Paper.

My plugin also requires the following setting in the paper.yml to work.
armor-stands-tick: true

@Shynixn Shynixn changed the title Clarify which armorstand changes where implemented in Paper build 274 Clarify which armorstand changes were implemented in Paper build 274 May 19, 2020
@Shynixn
Copy link
Author

Shynixn commented May 20, 2020

Thank you! I'll check it...

@Shynixn
Copy link
Author

Shynixn commented May 22, 2020

I have found the compatibility issue in my plugin and I fixed it.
The problem is that PaperSpigot changes the NMS method called setPositionRaw(double d0, double d1, double d2) that it does no longer just "set the raw position" but instead executes additional code which clashes when overwriting the NMS method called recalcPosition which I use to modify the bounding box of the soccer ball.

In order to fix this, I have replaced the call of setPositionRaw with field calls.

Again, thank you for your help, this issue can be closed.

@aikar
Copy link
Member

aikar commented May 22, 2020

I would recommend instead setting the entities width and height correctly instead, and then the AABB would of been calculated correctly.

That was the point of the change, to ensure you always have a valid AABB anytime position is update so that recalcPosition does compute the same coords as your setPositionRaw

@Shynixn
Copy link
Author

Shynixn commented May 22, 2020

I'll take a look into this.

@stale
Copy link

stale bot commented Dec 3, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale
Copy link

stale bot commented Dec 10, 2020

This issue has been automatically closed because it has not had activity in a long time. If the issue still applies to the most recent supported version, please open a new issue referencing this original issue.

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

No branches or pull requests

3 participants