What's Changed
- Add note for ItemsAdapter by @nahkd123 in https://github.com/nahkd123/stonks/pull/58
- Java Edition 1.21.2 by @nahkd123 in https://github.com/nahkd123/stonks/pull/61
Note for item adapter in default config
For new users, default config now includes a warning that removing the item adapter makes Stonks for Fabric no longer be able to access player's inventory.
// Adapters
// "stonks.fabric.adapter.provided.ItemsAdapter" is included so that Stonks can add/remove items in player's inventory
// If you remove this adapter, Stonks will be unable to access player's inventory. If you don't need to have access to
// player's inventory, you can remove this adapter.
// Additionally, you can make your own adapter to hook with other mods, like trading RF power for example.
useAdapter stonks.fabric.adapter.provided.ItemsAdapter
Update to Java Edition 1.21.2
Stonks for Fabric is now updated to Minecraft Java Edition 1.21.2.
Full Changelog: https://github.com/nahkd123/stonks/compare/v2.1.0+1.21...v2.1.1+1.21.2
Update: Stonks 2.1.0 also works with 1.21.1.
Thanks for waiting for Stonks to update to Minecraft 1.21! This update includes some breaking changes to the API, which means the minor version number must be increased by 1 (which is 2.1.0). Get it? Because 21.
- In theory, your existing configurations will works in this version. If your configurations broke in this version, please make a new bug report.
- Mods that have Stonks integration might need to be updated to use the new API. Legacy API will be around until 2.2.0.
Stonks got a new banner!
I hope to finish the new icon design soon, as the previous design doesn't have a good contrast between the white arrow and bright background.
Changes related to code and API
Removal of references to Nahara Modkit
Stonks now no longer have references to Nahara Modkit. However, Stonks still references to Nahara Toolkit for legacy APIs and the current configuration file format.
Moving from Nahara Toolkit Tasks to Java Future API
Most methods that returns Task<T>
will now be marked for removal. Its Future API counterparts are also provided. For example, to use StonksService#queryAllCategories()
but with CompletableFuture
, use StonksService#queryAllCategoriesAsync()
. Nahara Toolkit Tasks will be removed from Stonks in version 2.2.0.
Moving from adapter to Economy
interface
The new Economy
interface should be used over StonksFabricAdapter
economy methods, as it supports fixed-point numbers (through the use of long
). I hope to move most of the code to use Economy
in 2.1.1.
Replacing construction data string with metadata
The new getProductMetadata()
will returns a complex data structure (like JSON or NBT) in the future. Right now, it will always returns DynamicPrimitive
with isString() == true
, which is basically wrapping around the construction data from user's configuration. In the future, this metadata can be used to gather additional info about the product, like its market floor/ceiling price, as well as buy/sell limit.
Thanks for waiting for Stonks to update to Minecraft 1.20.5! This update fix a critical bug related to loading data, as well as updating Stonks to Minecraft 1.20.5
Critical bug fix: Data loading
Previously, Stonks will load 1 single entry from stonks.bin
and discard the rest. This update fixed that bug by keep reading the file until null version
is found.
- This does not affect data saving.
- This only affect data loading and can cause data loss.
To avoid further data loss, backup the current stonks.bin
file first, then stop server, install this update and start server again. After that, you can merge the data from backed up stonks.bin
with the current data. The schema for stonks.bin
can be found at the tools/
folder of this reppository (as ImHex pattern file). stonks.bin
can be found at saves/<World name>/stonks.bin
if you are on integrated server (a.k.a singleplayer), or world/stonks.bin
if you are using dedicated server.
Update to Minecraft 1.20.5
The change mostly involves around item components. The item construction data in config/stonks/config
file follows the same format that is used in /give
command.
Further bug fixing
If you encountered any bugs (including critical bugs like the one above), please head over to Issues page of Stonks GitHub repository and report bug there.
The above changelog is copied directly from this GitHub release page. All the files attached to this update are generated from GitHub actions.
Warning: This version contains a bug related to data loading part of Stonks. This bug has been fixed in 2.0.5 for Minecraft 1.20.5.
This update include 1 single change: The targeted Minecraft versions is now >=1.20.3
. If you don't want to redownload Stonks, consider using dependency overrides (it will work, I promise).
However, most people don't want to dip their hand into this magical world of JSON editing, so I have to release a new version just to include 1.20.4. I'm truly sorry for your inconvenience.
Did you know? Updates are also rolled out on GitHub as well. Check it out: https://github.com/nahkd123/stonks/releases/tag/v2.0.4%2B1.20.4
Welcome back. This update bump the target Minecraft version to 1.20.3, Fabric Loader version to 0.15.0 and Fabric API to 0.91.1.
I expect the mod to work as usual, but if you found a bug, consider report it in https://github.com/nahkd123/stonks/issues.
Welcome back. This new update targets Minecraft Java Edition 1.20.2, so I do expect some bugs. If you found any, please consider report it in Issues tracker.
What's Changed
- Update to Java Edition 1.20.2 (PR #37)
- Changed the sign type in input screen to acacia as a temporary fix for "gray-ish" text color in input GUIs
See changelog on GitHub: https://github.com/nahkd123/stonks/releases/tag/v2.0.3%2B1.20.2
Thanks for using Stonks! Please update your Stonks for Fabric to this version as it contains a fix that resolves unwanted behavior of in-memory service (IntegratedStonksService
to be precise).
What's Changed (copied from GitHub Release page)
- IMPORTANT: Add missing break to
instantOffer()
method in StonksMemoryService - Add additional check to
StonksFabricHelper.instantOffer()
- Fix null display stack on products with unknown construction data
See changelog on GitHub: https://github.com/nahkd123/stonks/releases/tag/v2.0.2%2B1.20.1