From a0acf4546161467f96998bee40b3bb94169ae66f Mon Sep 17 00:00:00 2001
From: Bukkit/Spigot <noreply+git-bukkit@papermc.io>
Date: Fri, 31 Dec 2010 09:07:12 -0500
Subject: [PATCH] Changed it so we store both the block and the face for speed

By: durron597 <martin.jared@gmail.com>
---
 .../src/org/bukkit/event/block/BlockFromToEvent.java      | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/paper-api/src/org/bukkit/event/block/BlockFromToEvent.java b/paper-api/src/org/bukkit/event/block/BlockFromToEvent.java
index fc029c369e..2fcbcf0c76 100644
--- a/paper-api/src/org/bukkit/event/block/BlockFromToEvent.java
+++ b/paper-api/src/org/bukkit/event/block/BlockFromToEvent.java
@@ -8,11 +8,13 @@ import org.bukkit.event.Event;
  * Holds information for events with a source block and a destination block
  */
 public class BlockFromToEvent extends BlockEvent {
-    protected BlockFace face;
+    protected Block from;
+	protected BlockFace face;
 
     public BlockFromToEvent(final Event.Type type, final Block block, final BlockFace face) {
         super(type, block);
         this.face = face;
+        this.from = block.getRelative(face.getModX(), face.getModY(), face.getModZ());
     }
 
     /**
@@ -29,7 +31,7 @@ public class BlockFromToEvent extends BlockEvent {
      * 
      * @return Block the faced block
      */
-    public Block getFacedBlock() {
-    	return block.getRelative(face.getModX(), face.getModY(), face.getModZ());
+    public Block getFromBlock() {
+    	return from; 
     }
 }