mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2024-11-14 22:35:13 +01:00
Fix morepackets(vehicle) set back never executing.
This commit is contained in:
parent
333cffd0d5
commit
99e7994b76
@ -874,7 +874,7 @@ public class MovingListener extends CheckListener implements TickListener, IRemo
|
||||
}
|
||||
|
||||
// Did one of the checks decide we need a new "to"-location?
|
||||
if (newTo != null && data.morePacketsVehicleTaskId != -1){
|
||||
if (newTo != null && data.morePacketsVehicleTaskId == -1){
|
||||
// Schedule a delayed task to teleport back the vehicle with the player.
|
||||
// (Only schedule if not already scheduled.)
|
||||
data.morePacketsVehicleTaskId = Bukkit.getScheduler().scheduleSyncDelayedTask(plugin, new Runnable() {
|
||||
|
Loading…
Reference in New Issue
Block a user