Re-add call to updateInventory

This commit is contained in:
NuclearW 2012-05-15 00:49:19 -04:00
parent 7e0b8ddf50
commit bcee6abb65

View File

@ -42,6 +42,7 @@ public class Herbalism {
}
else if (hasSeeds && !block.getType().equals(Material.WHEAT)) {
inventory.removeItem(new ItemStack(Material.SEEDS));
player.updateInventory(); // Needed until replacement available
greenTerraConvert(player, block);
}
}
@ -298,6 +299,7 @@ public class Herbalism {
plugin.getServer().getScheduler().scheduleSyncDelayedTask(plugin, new GreenThumbTimer(block, PP), 1);
inventory.removeItem(new ItemStack(Material.SEEDS));
player.updateInventory(); // Needed until replacement available
}
}