mirror of
https://github.com/EngineHub/WorldGuard.git
synced 2024-12-26 02:57:42 +01:00
Fixed an issue with Bukkit being terrible.
This commit is contained in:
parent
b850b5caf8
commit
1123270a07
@ -169,7 +169,7 @@ public static Target createTarget(Block block) {
|
|||||||
public static Target createTarget(ItemStack item) {
|
public static Target createTarget(ItemStack item) {
|
||||||
checkNotNull(item);
|
checkNotNull(item);
|
||||||
checkNotNull(item.getType());
|
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
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user