Skip to content

Commit

Permalink
Probably fix the steps on block event
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed Jun 17, 2015
1 parent 3265154 commit 7b1106c
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,9 @@ public HashMap<String, dObject> getContext() {

@EventHandler
public void onPlayerStepsOn(PlayerMoveEvent event) {
if (event.getTo().getBlock().getLocation().equals(event.getFrom().getBlock().getWorld())) {
return;
}
location = new dLocation(event.getTo().clone().subtract(0, 1, 0));
previous_location = new dLocation(event.getFrom());
new_location = new dLocation(event.getTo());
Expand Down

0 comments on commit 7b1106c

Please sign in to comment.