Closed riddle closed 10 years ago
It would probably be useful to trigger trade events continuously so when you kill the process it would be akin to a player doing it during crash.
Server save is completely irrelevant here as I don't save anything into vanilla villagers. Possible issue is that villager entity itself might not get saved to the world but this is out of Tradecraft scope.
Testing by killing java is very tricky because all those actions (saving to db etc.) take very little time (<1ms usually) which means it is hard to crash at precise spot to make it break.
Also read my answer at #16
Hmm right.
But what would happen if you read some stuff from db which wouldn't fit in how config sees trades? Or some other garbled junk?
Config is only used to fill DB. Data for trades is then only read from DB. Worst case scenario are errors because of nonexisting IDs.
OK, maybe in a case of nonexisting IDs it would fail gracefully and just wipe all trades and create new ones while notifying console? But that can be done later.