Fix morepackets(vehicle) set back never executing.

This commit is contained in:
asofold 2013-01-26 00:16:18 +01:00
parent 333cffd0d5
commit 99e7994b76

View File

@ -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() {