Mojira Archive
MC-249699

Potions in worlds from before 1.9 become water bottles when upgraded

The bug

Potions in worlds which were last loaded in 1.8.9 or an earlier version will become water bottles if loaded in the latest version instead of staying the potion they were.

How to reproduce

  1. Create a world in a pre-1.9 version
  2. Obtain a potion via your desired method
  3. Load this world in 1.18.2 or whatever the latest major release is
  4. Note what the potion is

Alternatively, I've attached four world files:

  • one is a base world from 1.3.2
  • one is the base world loaded in 1.8.9
  • one is the base world loaded in 1.12.2
  • one is the base world loaded in 1.8.9 and then 1.12.2
    These worlds can be used to reproduce this issue (as well as MC-249700 and MC-232104) instead of creating such a world yourself.

Expected results

The potion would... remain a potion?

Actual results

It becomes a water bottle.

Further notes

This is without a doubt related to the major refactoring done to potion formatting in 1.9.

Code analysis

Code analysis by Josiah Glosson in duplicate MC-277902.

Unresolved

Connor Steppie

2022-03-30, 07:31 PM

2024-11-01, 01:05 AM

6

6

Confirmed

Normal

Platform

Datafixer

data-fixer

Minecraft 18w19a - 1.21.3Minecraft 18w19a, 1.18.2, 1.19.3, 23w04a, 1.21.1, 24w36a, 1.21.3

-