diff --git a/Bukkit-Patches/0029-Check-for-plugins-setting-null-locations-worlds.patch b/Bukkit-Patches/0029-Check-for-plugins-setting-null-locations-worlds.patch index 448dbec9e5..7a5cfd110e 100644 --- a/Bukkit-Patches/0029-Check-for-plugins-setting-null-locations-worlds.patch +++ b/Bukkit-Patches/0029-Check-for-plugins-setting-null-locations-worlds.patch @@ -1,11 +1,11 @@ -From 30c208e767b0d5912ed4302f40bfbb258b314bf6 Mon Sep 17 00:00:00 2001 +From 6d80b52489761c3d29e23d3ad6a8c3e9d17d8a55 Mon Sep 17 00:00:00 2001 From: Thinkofdeath Date: Sun, 11 May 2014 10:03:12 +0100 Subject: [PATCH] Check for plugins setting null locations/worlds diff --git a/src/main/java/org/bukkit/event/player/PlayerMoveEvent.java b/src/main/java/org/bukkit/event/player/PlayerMoveEvent.java -index fa3b340..8908b68 100644 +index fa3b340..12b2250 100644 --- a/src/main/java/org/bukkit/event/player/PlayerMoveEvent.java +++ b/src/main/java/org/bukkit/event/player/PlayerMoveEvent.java @@ -5,6 +5,8 @@ import org.bukkit.entity.Player; @@ -17,7 +17,20 @@ index fa3b340..8908b68 100644 /** * Holds information for player movement events */ -@@ -63,6 +65,10 @@ public class PlayerMoveEvent extends PlayerEvent implements Cancellable { +@@ -16,8 +18,10 @@ public class PlayerMoveEvent extends PlayerEvent implements Cancellable { + + public PlayerMoveEvent(final Player player, final Location from, final Location to) { + super(player); +- this.from = from; +- this.to = to; ++ // Spigot start ++ setFrom( from ); ++ setTo( to ); ++ // Spigot end + } + + /** +@@ -63,6 +67,10 @@ public class PlayerMoveEvent extends PlayerEvent implements Cancellable { * @param from New location to mark as the players previous location */ public void setFrom(Location from) { @@ -28,7 +41,7 @@ index fa3b340..8908b68 100644 this.from = from; } -@@ -81,6 +87,10 @@ public class PlayerMoveEvent extends PlayerEvent implements Cancellable { +@@ -81,6 +89,10 @@ public class PlayerMoveEvent extends PlayerEvent implements Cancellable { * @param to New Location this player will move to */ public void setTo(Location to) {