Skip to content

Commit

Permalink
Missed something
Browse files Browse the repository at this point in the history
  • Loading branch information
JackyyTV committed Jan 5, 2018
1 parent acde15e commit d869daa
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/jackyy/exchangers/handler/ExchangerHandler.java
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,9 @@ private void placeBlock(ItemStack stack, EntityPlayer player, World world, Block
notEnough = true;
}
} else {
world.restoringBlockSnapshots = true;
event.getBlockSnapshot().restore(true);
world.restoringBlockSnapshots = false;
ChatHelper.msgPlayer(player, "error.event_cancelled");
}
}
Expand Down

0 comments on commit d869daa

Please sign in to comment.