[SPIGOT-5148] Opening inventory clears some NBT tags Created: 06/Jul/19  Updated: 06/Jul/19  Resolved: 06/Jul/19

Status: Closed
Project: Spigot
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: Shane Bee Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: 1.14.3, NBT
Environment:

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$ 


Version: git-Spigot-d05d3c1-a2275f1
Plugin: no plugins
Guidelines Read: Yes

 Description   

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.

 



 Comments   
Comment by Shane Bee [ 06/Jul/19 ]

Ahhh okay gotcha. Thanks for letting me know!

Comment by md_5 [ 06/Jul/19 ]

It's the same cause.

Fixing that will fix this.

Comment by Shane Bee [ 06/Jul/19 ]

Unless I'm completely insane, that was a different issue based on coding a plugin, whereas this is actually an issue in game

Comment by Black Hole [ 06/Jul/19 ]

Duplicate of SPIGOT-5146

Generated at Thu Apr 03 15:45:22 UTC 2025 using Jira 10.3.3#10030003-sha1:d220e3fefc8dfc6d47f522d3b9a20c1455e12b7b.