Skip to content

Releases: nahkd123/stonks

v2.1.0+1.21

14 Jun 06:26
3970554
Compare
Choose a tag to compare

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.

What's Changed

Full Changelog: v2.0.5+1.20.5...v2.1.0+1.21

v2.0.5+1.20.5

25 Apr 11:12
v2.0.5+1.20.5
917d5ac
Compare
Choose a tag to compare

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.

Commits

  • 11c470c: Update to Minecraft 1.20.5 (#50) (An) #50
  • 917d5ac: Forgot these files + Force CI to run (nahkd123)

v2.0.4+1.20.4

07 Dec 15:49
v2.0.4+1.20.4
a73f1e9
Compare
Choose a tag to compare

Manually written changelog

  • The targeted Minecraft versions is now >=1.20.3

I expect the previous version to work if you use dependency overrides (a.k.a force Stonks to support 1.20.4). 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.

Full Changelog: v2.0.4+1.20.3...v2.0.4+1.20.4

v2.0.4+1.20.3

06 Dec 05:30
v2.0.4+1.20.3
4850b64
Compare
Choose a tag to compare

What's Changed

Full Changelog: v2.0.3+1.20.2...v2.0.4+1.20.3

v2.0.3+1.20.2

21 Sep 18:25
5cb765e
Compare
Choose a tag to compare

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 by @nahkd123 in #37
  • Changed the sign type in input screen to acacia as a temporary fix for "gray-ish" text color in input GUIs

Full Changelog: v2.0.2+1.20.1...v2.0.3+1.20.2

v2.0.2+1.20.1

22 Aug 17:24
14daa2c
Compare
Choose a tag to compare

Thanks for using Stonks! Please update your Stonks mod/plugin/platform to this version as it contains a fix that resolves unwanted behavior of in-memory service (StonksMemoryService or IntegratedStonksService if you are using Fabric).

What's Changed

  • Add additional check to instantOffer() by @nahkd123 in #27
  • Fix null display stack on products with unknown construction data by @nahkd123 in #29
  • IMPORTANT: Add missing break to instantOffer() method in StonksMemoryService by @nahkd123 in #35

Full Changelog: v2.0.1+1.20.1...v2.0.2+1.20.1

v2.0.1+1.20.1

12 Aug 13:46
d20604e
Compare
Choose a tag to compare

This release addresses 2 issues from #22 and #23 before publishing Stonks for Fabric on Modrinth.

What's Changed

Full Changelog: v2.0.0+1.20.1...v2.0.1+1.20.1

v2.0.0+1.20.1

12 Aug 11:28
d55d0c5
Compare
Choose a tag to compare

Welcome to the first ever release of Stonks(2)!

Download: You are on the download page!
Documentations: https://nahkd123.github.io/stonks

What's Changed

  • tl;dr: There's nothing changed because this is the first release 💀.
  • Add next/previous navigation buttons by @nahkd123 in #5
  • Add localization support by @nahkd123 in #9
  • Subscribe to service events + Send "offer filled" message to player by @nahkd123 in #13
  • Refactor Translations class by @nahkd123 in #14
  • Fix tax not being applied when canceling offer with filled units by @nahkd123 in #19
  • Add more sounds by @nahkd123 in #18
  • Add ability to configure custom category icons (platform-bound) by @nahkd123 in #20

New Contributors

  • @nahkd123 made their first contribution in #5 no I'm not this is not my first time.

Full Changelog: https://github.com/nahkd123/stonks/commits/v2.0.0+1.20.1