Skip to content

Commit

Permalink
Release 1.6. Fix PlayerInteractEvent call.
Browse files Browse the repository at this point in the history
  • Loading branch information
gamerforEA committed Feb 24, 2016
1 parent 4da606b commit 87ac07b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ apply plugin: 'forge'

[compileJava, compileTestJava]*.options*.encoding = 'UTF-8'

version = "1.5"
version = "1.6"
group= "com.gamerforea"
archivesBaseName = "EventHelper"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ public static final boolean cantInteract(EntityPlayer player, ItemStack stack, i
{
org.bukkit.entity.Player bPlayer = toBukkitEntity(player);
PlayerInteractEvent event = new PlayerInteractEvent(bPlayer, Action.RIGHT_CLICK_BLOCK, toBukkitItemStackMirror(stack), bPlayer.getWorld().getBlockAt(x, y, z), toBukkitFace(side));
EventHelper.callEvent(event);
return event.isCancelled();
}
catch (Throwable throwable)
Expand Down

0 comments on commit 87ac07b

Please sign in to comment.