mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-07 23:52:11 -07:00
Update to Minecraft 1.12-pre2
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
|
||||
@@ -111,6 +117,26 @@
|
||||
if (this.exitPortal != null) {
|
||||
BlockPosition blockposition = this.exactTeleport ? this.exitPortal : this.i();
|
||||
BlockPosition blockposition = this.exactTeleport ? this.exitPortal : this.j();
|
||||
|
||||
+ // CraftBukkit start - Fire PlayerTeleportEvent
|
||||
+ if (entity instanceof EntityPlayer) {
|
||||
@@ -31,7 +31,7 @@
|
||||
+ }
|
||||
+
|
||||
+ ((EntityPlayer) entity).playerConnection.teleport(teleEvent.getTo());
|
||||
+ this.i();
|
||||
+ this.h(); // CraftBukkit - call at end of method
|
||||
+ return;
|
||||
+
|
||||
+ }
|
||||
|
Reference in New Issue
Block a user