Closed ai-kana closed 1 week ago
This isn't something the game supports / expects to happen. Are you making a plugin which resets farms?
Yes, I am making a plugin that resets farms.
Would it work to damage the existing farm and immediately spawn a new one replacing it? Or is there some state that would be lost?
That is possible. I'm trying to give the harvester one of the two items and revert the plants state. This is so that they don't have to craft seeds and replant.
While possible I don't see this as a very good fix.
When using
BarricadeManager.updateFarm()
to change when a planted was placed it does not updated the model inInteractableFarm.Update()
if the plant is going from a fully grown state to non-fully grown state.InteractableFarm.updateState()
does update the state but doesn't replicate it to clients asBarricadeManager.updateFarm()
does.