Dragon-Mounts-Legacy
Dragon-Mounts-Legacy copied to clipboard
Fix missing egg component crash, Fix Dragon Egg Dupe
This pr fixes a crash in 1.19.2 caused by eggs being created without name tags such as when dropping on a torch and breaking. This would cause an egg with invalid data to be created and when hovering over the item clients will crash. Translations have been added to fix the untranslated name showing as the item name as well. I can confirm English is correct, Japanese / Ukrainian translations were verified against Google Translate.
This pr also restores the call in when an egg starts hatching that removed the original block. This was the behavior in 1.16 but at some point was handled outside the method. This meant that Vanilla Dragon Eggs could be duplicated.
Fixes #249