Updated for newer builds of hMod.

This commit is contained in:
sk89q 2010-12-02 22:56:47 -08:00
parent c96bb890b4
commit 8b3eaa70fb

View File

@ -595,11 +595,14 @@ public boolean onInventoryChange(Player player) {
/**
* Called when a player uses an item (rightclick with item in hand)
* @param player the player
* @param blockPlaced where a block would end up when the item was a bucket
* @param blockClicked
* @param item the item being used (in hand)
* @return true to prevent using the item.
*/
@Override
public boolean onItemUse(Player player, Item item) {
public boolean onItemUse(Player player, Block blockPlaced,
Block blockClicked, Item item) {
if (blacklist != null) {
int itemId = item.getItemId();