I tested this in creative. I killed the enderdragon twice in a row and spawned both gateways. I then left the game and rejoined. Then I killed the enderdragon another time and no portal spawned. I then killed the dragon again and still no portal, but the 3rd time a new portal spawned. I did this up to 5 portals, then left the game and rejoined again. I then had to kill the dragon another 5 times, and on the 6th time a new portal spawned. It would seem like the data for the amount of times the dragon has been killed hasn't been saved as has been said by a few other people here. This would also mean if the dragon is killed 19 times in a row without leaving and 19 gateways have been spawned and then you happen to leave the game, you'd have to kill the dragon an additional 20 times before you can spawn the final end gateway. Looks like I won't be making my end hub anytime soon :,) (This was in 1.19.4 in singleplayer but this issue has also affected my server on the same version)
I tested this in creative.
I killed the enderdragon twice in a row and spawned both gateways.
I then left the game and rejoined.
Then I killed the enderdragon another time and no portal spawned.
I then killed the dragon again and still no portal, but the 3rd time a new portal spawned.
I did this up to 5 portals, then left the game and rejoined again.
I then had to kill the dragon another 5 times, and on the 6th time a new portal spawned.
It would seem like the data for the amount of times the dragon has been killed hasn't been saved as has been said by a few other people here.
This would also mean if the dragon is killed 19 times in a row without leaving and 19 gateways have been spawned and then you happen to leave the game, you'd have to kill the dragon an additional 20 times before you can spawn the final end gateway.
Looks like I won't be making my end hub anytime soon :,)
(This was in 1.19.4 in singleplayer but this issue has also affected my server on the same version)