-
-
Notifications
You must be signed in to change notification settings - Fork 424
Add a setting to retain projectile owner after hit when owner is disconnected #1666
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
base: ver/1.21.5
Are you sure you want to change the base?
Add a setting to retain projectile owner after hit when owner is disconnected #1666
Conversation
|
I don't see any major issues, granny or trouble will need to do a full review If you haven't already, also make a PR to add the new option to the purpur documentation :3 |
|
I'm AFK, I will do it tomorrow :) |
|
@Lemonzyy Can you link the paper patch that supposedly causes the owner to be removed? |
|
@YouHaveTrouble |
|
Maybe you can also pr this to paper as an unsupported-setting? i think they would accept this if it breaks vanilla in some way |
|
Looks like this was the original PR that added the lines you're changing: PaperMC/Paper#9715 That area of the code changed in 1.21.6. Looks like the issue you were running into now happens on vanilla 1.21.6 as well (needs more testing). |
|
If projectile ownership loss is the correct behavior on Vanilla, I think that there's no need to add my feature. We will have to wait and see. |
|
I feel like it's an oversight on mojang/paper tbh I think this could still be "fixed" in a different way that doesn't change the same area of the code |
After building a wireless-activated teleporter on a Purpur server, my friends and I noticed that the teleporter stopped working after re-logging into the server. Interestingly, this mechanism functions correctly in Vanilla Minecraft.
Upon digging into the issue, I discovered that the
Ownerproperty of the arrow disappears when the owner logs out. This happens because the arrow continuously collides with an entity (specifically, a wind charge), and due to a fix implemented in Paper, theOwneris set tonullwhen the owner is disconnected from the server.I introduced a configuration option under
gameplay-mechanics.retain-projectile-owner-on-hit-if-owner-offline. When enabled, this option prevents the projectile from losing its owner upon hitting an entity while the owner is offline, thereby restoring the expected behavior and ensuring compatibility with redstone contraptions that rely on projectile ownership.