Furnance inventory not updating

Discussion in 'Plugin Development' started by darkhelmet, Aug 19, 2012.

Thread Status:
Not open for further replies.
  1. Offline

    darkhelmet

    I spoke to some folks in bukkitdev at length but no one could resolve this issue. Before filing a bug I wanted to post here.

    I have a spell plugin that uses written books. I have a book that instantly turns smeltable items into their finish product. It works fine when I run the code from a PlayerInteractEvent, detecting a punch with said book on a furnace.

    However, it would be cooler to use the book as fuel instead,

    I wrote this code:

    http://pastie.org/4551844

    And it works properly, *except* for the fact that the final results of the code don't show up until you click anywhere in the inventory. It's like the .updateInventory() issue for players, but is for a furnace.

    Any ideas?
     
  2. You can use FurnaceBurnEvent to make the furnace start burning when an item is placed in the fuel slot, a.k.a. creating fuels.
     
  3. Offline

    darkhelmet

    It doesn't seem to me that a FurnaceBurnEvent would even be fired considering it's not a flammable item.
     
  4. It does.
    That's how I'm adding fuels in my RecipeManager plugin :)
     
  5. Offline

    darkhelmet

    Thanks, that does work.
     
Thread Status:
Not open for further replies.

Share This Page