-
Bug
-
Resolution: Fixed
-
Minor
-
None
-
None
-
Linux
-
git-Spigot-03bd4b0-6984fc4 (MC: 1.14.1)
-
n/a
-
Yes
Changing the teleport to location seems to have no effect.
// // Inside PlayerTeleportEvent // Location newLoc = new Location(world, toLoc_x, loopY, toLoc_z); log.info("new loc: " + newLoc); log.info("to loc: " + event.getTo()); event.setTo(newLoc); log.info("new to loc: " + event.getTo()); return;
The console correctly showed:
Console |
---|
[Server thread/INFO]: new loc: Location
{world=CraftWorld{name=maps/main},x=17974.0,y=71.0,z=11118.0,pitch=0.0,yaw=0.0} [Server thread/INFO]: to loc: Location{world=CraftWorld{name=maps/main},x=17974.051845316746,y=49.166109260938214,z=11118.553746159841,pitch=8.2,yaw=-82.50012} [Server thread/INFO]: new to loc: Location {world=CraftWorld{name=maps/main},x=17974.0,y=71.0,z=11118.0,pitch=0.0,yaw=0.0} |
However i am teleported to x:17974 y:49 z:11120