From b105f07fa7258fe7864995298e9198d359093cb2 Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Sat, 15 Jan 2011 21:20:23 -0800 Subject: [PATCH] Fixed BlockFromToEvent not knowing source block from destination block. By: sk89q --- .../java/org/bukkit/event/block/BlockFromToEvent.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/paper-api/src/main/java/org/bukkit/event/block/BlockFromToEvent.java b/paper-api/src/main/java/org/bukkit/event/block/BlockFromToEvent.java index ab1927de00..09bde18cc6 100644 --- a/paper-api/src/main/java/org/bukkit/event/block/BlockFromToEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/block/BlockFromToEvent.java @@ -9,14 +9,14 @@ import org.bukkit.event.Event; * Holds information for events with a source block and a destination block */ public class BlockFromToEvent extends BlockEvent implements Cancellable { - protected Block from; + protected Block to; protected BlockFace face; protected boolean cancel; 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()); + this.to = block.getRelative(face.getModX(), face.getModY(), face.getModZ()); this.cancel = false; } @@ -34,8 +34,8 @@ public class BlockFromToEvent extends BlockEvent implements Cancellable { * * @return Block the faced block */ - public Block getFromBlock() { - return from; + public Block getToBlock() { + return to; } public boolean isCancelled() {