[SPIGOT-7393] New tile entities don't load Bukkit's PersistentDataContainer Created: 14/Jun/23 Updated: 25/Dec/24 Resolved: 15/Jun/23 |
|
Status: | Resolved |
Project: | Spigot |
Component/s: | None |
Affects Version/s: | None |
Fix Version/s: | None |
Type: | Bug | Priority: | Minor |
Reporter: | Parker Hawke | Assignee: | Parker Hawke |
Resolution: | Fixed | Votes: | 0 |
Labels: | None |
Version: | git-Spigot-bed8c61-9c5d600 |
Guidelines Read: | Yes |
Description |
Bukkit's PersistentDataContainer is loaded in `BlockEntity#load()`. For all tile entities up until 1.20 this has been fine as their overrides have invoked `super.load()`. This, however, is not the case for `BrushableBlockEntity`, `ChiseledBookShelfBlockEntity`, and `SculkCatalystBlockEntity`, none of which invoke super, causing Bukkit to not load any of its persistent data which results in loss of data for these blocks. |