Shift-Crafting Custom recipes / Visual glitch

Discussion in 'Plugin Development' started by CreeperShift, Apr 10, 2013.

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

    CreeperShift

    There is a visual glitch, when crafting non-vanilla recipes using shift click. If you are making more than 1 item at the same time, it will show up as 1 item until you try to move it around in the inventory.
    So it's only visual, but I've heard it's been around for a long time.

    I currently fix it using this:

    Code:
                    player.getServer().getScheduler()
                            .scheduleSyncDelayedTask(plugin, new Runnable() {
                                @Override
                                public void run() {
     
                                    player.updateInventory();
                                }
                            }, 1);
    on CraftItemEvent and it somewhat works (there is still delay when the items show up).

    Is there a better way to handle this? Especially since updateInventory(); is deprecated.
     
    vtg_the_kid likes this.
  2. Yeah, I bump this. Although the solution here doesn't work for me.
     
  3. Offline

    TechNotes

    Bump, same issue
     
  4. Offline

    xTrollxDudex

    You're 1 year late
     
  5. Offline

    TechNotes

  6. Offline

    thomasb454


    Create a new thread.
     
  7. Offline

    CreeperShift

    1 year and the issue is still there? That sucks :D
     
Thread Status:
Not open for further replies.

Share This Page