Summoning a lingering splash potion without any specific data in "Item" NBT render as a splash potion.
Step to reproduce :
1. Summon an lingering potion with no gravity :
summon minecraft:lingering_potion ~ ~ ~ {NoGravity:1b}
2. Note how the lingering potion renders as a splash potion.
❌ Current result : The Lingering potion renders as a splash potion.
✔ Expected result : The Lingering potion renders as a Lingering potion.
Code analysis (Yarn mappings)
The
PotionEntityclass overrides theThrownItemEntity#getDefaultItemmethod to return the splash potion item; however, theLingeringPotionEntityclass does not override this method, instead inheriting the same splash potion item. A suggested fix would be to override this method in theLingeringPotionEntityclass as well:Perhaps the splash potion implementation of this method should also be moved from the
PotionEntityclass to theSplashPotionEntityclass.