Invalid Loot Table names containing periods (".") do not create error message
Relates to:
MC-91061: Probably caused by the fix
The bug
When you provide a LootTable name with a period the game is unable to find a loot table but does not print an error indicating this.
How to reproduce
- Use the following command
/setblock ~ ~ ~ chest 0 replace {LootTable:"invalid"} - Open the chest
→ The error is printed in the log: "Couldn't find resource table minecraft:invalid" - Use the following command
/setblock ~ ~ ~ chest 0 replace {LootTable:"invalid2."} - Open the chest
→ No error message is printed
The reason
The following is based on a decompiled version of Minecraft 1.9 using MCP 9.24 beta.
The reason for this is that the method net.minecraft.world.storage.loot.LootTableManager.Loader.load(ResourceLocation) only prints the error message
Invalid loot table name '[LOOT_TABLE]' (can\'t contain periods)
as debug message and not as error message.