Purpur icon indicating copy to clipboard operation
Purpur copied to clipboard

if set max-growth-age, plants may not grow

Open KioProject123 opened this issue 2 years ago • 1 comments

Timings link

No response

Expected behavior

Cave vines and kelp can grow normally

Observed/Actual behavior

Cave vines and kelp cannot grow after repeated destroy

Steps/models to reproduce

1、set cave vines (or kelp) max-growth-age to 10 2、place some 3、/gamerule randomTickSpeed 1000 4、when cave vines grows up, destroy its newly grown parts, until all cave vines stops growing

Purpur version

[19:22:47 INFO]: This server is running Purpur version git-Purpur-1434 (MC: 1.18.1) (Implementing API version 1.18.1-R0.1-SNAPSHOT) (Git: 1fd37bd on HEAD)

Agreements

  • [X] I am running the latest version of Purpur available from https://purpur.pl3x.net/downloads.
  • [X] I have searched for and ensured there isn't already an open issue regarding this.
  • [X] My version of Minecraft is supported by Purpur.

Other

Placed and destroyed cave vines will have a random age(0-25), It will not change according to the max-growth-age. This leads to the age of cave vines after multiple destruction is greater than max-growth-age.

KioProject123 avatar Dec 15 '21 11:12 KioProject123

Confirmed.

~~Looks like there have been a lot of changes to the GrowingPlantHeadBlock class. To fix this we will need to move the max-growth-age world settings to the global config since most of the new methods only expose the BlockState and not the ServerLevel~~

Was easier to fix than I thought.

BillyGalbreath avatar Dec 16 '21 08:12 BillyGalbreath

any update rn? @BillyGalbreath

hexadecimal233 avatar Aug 28 '22 07:08 hexadecimal233

any update rn? @BillyGalbreath

Looks like its still an open issue to me.

BillyGalbreath avatar Aug 28 '22 17:08 BillyGalbreath