Uploaded image for project: 'SpigotPlugins'
  1. SpigotPlugins
  2. PLUG-142

[MC 1.9.2] PlayerBucketEmptyEvent.setItemStack(ItemStack) not doing anything


      When an ItemStack is assigned to a PlayerBucketEmptyEvent via setItemStack(ItemStack) the ItemStack can be recalled with PlayerBucketEmptyEvent.getItemStack() but when the method is done and the event result is applied it ignores whatever item is set and just puts an empty bucket in the player's hand. You can try this with any code you like, it won't work under any circumstances.

      For convenience's sake I'll just attach my own class where the error happened. I have a workaround by cancelling the event and then simulate the event by hand placing the water and putting the item in the hand, but this should of course not be necessary and most likely can cause bugs in certain circumstances.

            Unassigned Unassigned
            detig_iii detig_iii
            0 Vote for this issue
            1 Start watching this issue