Verified Issue Bug: consumeHeldItem server crash

Discussion in 'Bug Reports' started by Darkitect, Nov 5, 2019.

  1. Darkitect

    Darkitect Member
    Premium Supporter Supporter Moderator Quality Assurance

    Joined:
    Mar 20, 2017
    Messages:
    147
    Likes Received:
    10
    Enter a brief description of what is broken consumeHeldItem server crash

    What version of Minecraft are you using? 1.14

    What server jar are you using? Paper #225

    What is this a bug report for? Artifacts

    What version of the plugin are you using? 1.0.0 Build #236

    Describe the bug. Be as specific as possible, images or short gifs/videos are welcome but save configuration files for later sections. Write a whole paragraph if needed, help us bug testers replicate your issue!
    Error Log: https://pastebin.com/ZtzcVRui

    Consuming the last item in a stack instantly crashes the server. This list references the example configuration below.

    1) (survival mode) using a placeable block (a spawner, in this example), "using" the block in the air doesn't trigger the error. Placing the block on the ground crashes the server. Mechanic still runs, so any lingering effects are there when the server reboots (here, both the pig spawner and the zombie spawner are present after reboot).

    2) (creative mode) using a placeable block, "using" the block in the air or placing on the ground crashes the server. Mechanic still runs, so any lingering effects are there when the server reboots (here, only zombie spawner is present after reboot).

    3) (survival mode) using a non placeable block (like a gold ingot), "using" in air or targeting a block to interact with throws no error.

    4) (creative mode) using a non placeable block (like a gold ingot), "using" in air or targeting a block to interact with crashes the server.

    Conversation with RogerPlaysMC included in replies to this thread.

    Example Configurations
    https://pastebin.com/wDEB5Aqx
     
    #1
  2. Darkitect

    Darkitect Member
    Premium Supporter Supporter Moderator Quality Assurance

    Joined:
    Mar 20, 2017
    Messages:
    147
    Likes Received:
    10
    Insight from RogerPlaysMC:

     
    #2
  3. Roger M

    Roger M Member
    Premium Supporter Supporter

    Joined:
    May 13, 2016
    Messages:
    209
    Likes Received:
    17
  4. Roger M

    Roger M Member
    Premium Supporter Supporter

    Joined:
    May 13, 2016
    Messages:
    209
    Likes Received:
    17
    Possible fix (for the devs). If not already done, add a “consumable” nbt tag to consumable items. During a block place event, check for the tag and cancel accordingly.
     
    #4

Share This Page