[SPIGOT-6959] Error in spawn for loot tables Created: 06/Mar/22 Updated: 25/Dec/24 Resolved: 07/Mar/22 |
|
| Status: | Resolved |
| Project: | Spigot |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Minor |
| Reporter: | Doc | Assignee: | Doc |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Attachments: |
|
||||||||
| Issue Links: |
|
||||||||
| Version: | CraftBukkit version 3450-Spigot-fb0dd5f-4ed5af5 (MC: 1.18.2) (Implementing API version 1.18.2-R0.1-SNAPSHOT) | ||||||||
| Guidelines Read: | Yes | ||||||||
| Description |
|
Currently in NMS exists a validation for avoid make a Item Entity can set a empty ItemStack. this validation causes inconsistences with loot tables in spawn cases, where for example if you try to spawn a loot table of vanilla for chests you throw a error because the chest has empty itemstacks.
Command used in test. Note: the loot its random then not in all cases return the error. /loot spawn ~ ~ ~ loot minecraft:chests/abandoned_mineshaft
Expected: The command spawn all the content of this loot
Currently: The command throw a error when detect a empty itemstack.
|
| Comments |
| Comment by Doc [ 07/Mar/22 ] |