Minecarts dont teleport when occupied by player on teleportblock
LadyCailinBot opened this issue · 11 comments
CRAFTBOOK-2359 - Reported by Vladimír.Cimbůrek
The cart teleport block works just with carts alone, when they have passenger in it ( player ) they will just pass by.
Comment by Vladimír.Cimbůrek
well it worked partially. the cart now teleport with player in it, but get stuck above the target destination block and cant move. its like 3 blocks above the target
Comment by Vladimír.Cimbůrek
i tested the latest build and now it teleports inside the target block. I think its not problem with coords, something in bukkit is messing with the teleport. why else it would stop in air and not fall?
Comment by Vladimír.Cimbůrek
I tried this at clean bukkit server and still nothing
Comment by Zachar543
Due to a commit (Bukkit/CraftBukkit@c6ac44a), any plugin that relies on the teleportation of vehicles/entities that have a passenger will cease to work. I hope the developers see this and help get this commit removed.
Comment by me4502
I see... They made it impossible for entities riding something or vehicles with a passenger to teleport... I will make a workaround this afternoon (in about 6 hours, I'm busy until then)
Comment by Zachar543
Thanks. Also, I have found that many of the workarounds are pretty visually unappealing. How will this workaround be done?
Comment by me4502
The easiest I can think of it ejecting the player, end teleporting both separately, then re-putting the player in the cart. We already do that for teleportation into unloaded chunks (because otherwise it wouldn't load)
Comment by Vladimír.Cimbůrek
Bukkit devs are trying to kill any plugins we have... me4502, if I recall correctly, u have this in your src.
if (passenger != null) {
cart.eject();
passenger.teleport(loc);
toCart.setPassenger(passenger);
}
so if u add line passenger.eject() and than cart.teleport() u might have your workaround... if you know what I mean :)