Permalink
Browse files

Fixed an issue with Bukkit being terrible.

  • Loading branch information...
me4502 committed Aug 7, 2018
1 parent b850b5c commit 1123270a07aaf7a46f1c4eb94c55e6d582a540bc
Showing with 1 addition and 1 deletion.
  1. +1 −1 worldguard-legacy/src/main/java/com/sk89q/worldguard/bukkit/BukkitUtil.java
@@ -169,7 +169,7 @@ public static Target createTarget(Block block) {
public static Target createTarget(ItemStack item) {
checkNotNull(item);
checkNotNull(item.getType());
return new ItemTarget(BukkitAdapter.asItemType(item.getType()));
return createTarget(item.getType()); // Delegate it, ItemStacks can contain both Blocks and Items in Spigot
}
/**

0 comments on commit 1123270

Please sign in to comment.