-
Bug
-
Resolution: Unresolved
-
Minor
-
None
-
None
-
Windows 10
Spigot, latest build(view the version section) compiled with BuildTools on OpenJDK Corretto-16.0.1.9.1
-
This server is running CraftBukkit version 3241-Spigot-6c1c1b2-1492826 (MC: 1.17.1) (Implementing API version 1.17.1-R0.1-SNAPSHOT)
-
QualityArmoryVehicles2
-
Yes
I have a very strange problem: I'm working to an update for my vehicles plugin, I created an armorstand for each passenger and when the main one moves, with some math and vectors the other one goes with it.
Now, from my main account I see everything normal(image 1) but from the other one I see a strange thing: I see myself without the armorstand(image 2)
This is the code I think cause the bug:
double offDis = offset.distanceSquared(e.getLocation()); if (offDis > 1) { final Entity rider = e.getPassenger(); e.eject(); e.teleport(offset); if (rider != null) { rider.teleport(offset); e.setPassenger(rider); } }
Spigot Thread: https://www.spigotmc.org/threads/wrong-entity-passengers-visual.525270/