-
Notifications
You must be signed in to change notification settings - Fork 61
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
WorldGuard Region Entering/Leaving on TrainCart #442
Comments
Hmm I'm unable to reproduce this (with the |
Can confirm that this is an issue, but only when the train is not moving, and a track animation is being played that causes the train to enter/leave a WG region. |
Details to reproduce are as follows: Coaster track Steps:
|
The issue is that the server ticks the entity as well, and outside of the normal overrided tick() it calls entity.setOldPosAndRot(), which causes it to lose the 'last position' information. This in turn causes a vehicle move event to be fired with the wrong last position information, or not at all. TCC triggered this with animations because it moves the entity without a teleport event that WorldGuard would otherwise see. I'm adding a change so that traincarts tracks the last position using its own field to avoid outside interference. I should add: this was not easy to figure out |
This fixes the situation outlined by bbayu for me. f86a2cd |
Another minor patch. c0691ca |
Info
Please provide the following information:
/train version
): v1.18.2-v1 (build: 1087)/train version
): v1.18.2-v2-SNAPSHOT (build: 1270)/version
): git-Paper-792 (1.16.5)Bug
Description
After entering a TrainCart, and then the cart moves into the region from a speed sign, station, launch, or track animation, WorldGuard doesn't seem to detect you've entered that region. Using /rg info shows that the player has entered the region but none of the region flags work. For example, the greeting I've set to happen after the player enters is not appearing until they get out of the cart. Not sure if this has anything to do with TrainCarts or if that's more of a WG issue however.
Expected behaviour
What do you expect TrainCarts to do?
I expect TrainCarts to put the player into the region in a way that will allow WorldGuard to send the necessary things to the client.
Actual behaviour
What is TrainCarts doing instead?
Putting them into the region, but with none of the flags within the region being sent or working.
Steps to reproduce
Please list the steps to take, in order to reproduce the bug.
Additional Information
Any additional information we should know of?
N/A
The text was updated successfully, but these errors were encountered: