Uploaded image for project: 'Spigot'
  1. Spigot
  2. SPIGOT-5148

Opening inventory clears some NBT tags

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Minor Minor
    • None
    • None
    • macOS 10.14.5

      java version "1.8.0_201"

      Java(TM) SE Runtime Environment (build 1.8.0_201-b09)

      Java HotSpot(TM) 64-Bit Server VM (build 25.201-b09, mixed mode)

      ShaneBees-MacBook-Pro:~ Shane$ 

    • git-Spigot-d05d3c1-a2275f1
    • no plugins
    • Yes

      I noticed when reporting my issue last night that I came across another issue.

      When using a command such as:

       

      /give ShaneBee campfire{BlockStateTag:{lit:”false”}}
      

      I am given a campfire item, and when I place it, the campfire is unlit. In vanilla this works fine, but in Spigot I came across two issues. Im not sure if these 2 issues are closely related or not, but I'll address the both just incase.

      issue 1) 

      When placing the campfire in vanilla, the campfire is unlit, but when placing the campfire on a Spigot server, the campfire is lit and very quickly changes to the unlit state. Obviously this should match what vanilla does and place as unlit.

      issue 2)

      When first using the command, I can place this unlit campfire, but as soon as I open my inventory, you will notice the item has no NBT tags. When I close my inventory and place the campfire, the campfire remains lit. It appears that opening/closing my inventory erases the NBT tag from the item.

       

      Im including a short video just to show exactly what happens: (the first part of the video is the vanilla server, I ran '/ver' just to show that its in fact a vanilla server, the second part of the video is logged into my Spigot server)

      https://youtu.be/D7_WEgOrTxg

       

      Notes:

      Tested on Vanilla server? Yes, this issue does not happen in vanilla, the item acts as it should

      Tested on Craftbukkit server? Yes, same outcome as the Spigot server.

      Tested on 1.13.2? Yes, although this specific tag does not work on 1.13.x, I tested it with a furnace, and the tag persists thru opening/closing inventories.

       

            Unassigned Unassigned
            ShaneBee Shane Bee
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: