mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-29 14:06:17 +01:00
Fix a mistake in Teleport w/ passenger/vehicle patch
Along with restoring authorship to the original writer
This commit is contained in:
parent
de86706b70
commit
b547153ec6
@ -1,5 +1,5 @@
|
||||
From d5d998345385422fa5f96941068f849fbaa69558 Mon Sep 17 00:00:00 2001
|
||||
From: Zach Brown <Zbob750@live.com>
|
||||
From: Aikar <aikar@aikar.co>
|
||||
Date: Fri, 28 Nov 2014 00:24:18 -0600
|
||||
Subject: [PATCH] Teleport passenger/vehicle with player
|
||||
|
||||
@ -58,7 +58,7 @@ index 5864a51..2d4398e 100644
|
||||
+ vehicle.teleportTo(location, false);
|
||||
+ vehicle = vehicle.getBukkitEntity().getHandle();
|
||||
+ entity.vehicle = vehicle;
|
||||
+ entity.passenger = entity;
|
||||
+ vehicle.passenger = entity;
|
||||
+ }
|
||||
+
|
||||
+ if (passenger != null) {
|
||||
|
Loading…
Reference in New Issue
Block a user