Closed sovdeeth closed 1 year ago
At work for another 5 hours as for that line you commented on I can't see full code on mobile but it should still exist on another piece of code
@ShaneBeee You may want to check out some of the vehicle event listeners in the boundborderlistener class, they also modify from
without cloning, but I haven't tested with them
They all modify to and from as we set yaw and pitch to 0
@ShaneBeee You may want to check out some of the vehicle event listeners in the boundborderlistener class, they also modify
from
without cloning, but I haven't tested with them
ok I think I got them all. I cloned any location which has been modified
What happened?
The
preventBoundMovement
method sets the yaw and pitch of thefrom
location to the yaw and pitch of theto
location. Sincefrom
is not cloned, this affects the originalfrom
location in the event and pollutes downstream listeners. This isn't a very big issue as it would only affect other MONITOR listeners, but should still be addressed.Steps to reproduce
You'll notice as you move around, they always have the same pitch/yaw when SkBee is installed Without SkBee, the yaw/pitch is different.
Expected behavior
I expect the listener to not change the
from
orto
locations (well it could technically changeto
and that'd be valid, but only if the player will actually end up atto
.SkBee Version
2.17.0
Server Version
Paper 1.20.1
SkBee Info
Additional Information
No response