ThePython10110 / ExchangeClone

Equivalent Exchange/ProjectE for Minetest Game and MineClone2/Mineclonia
https://github.com/ThePython10110/ExchangeClone/wiki
GNU General Public License v3.0
3 stars 3 forks source link

[Bug] Gold Nuggets randomly have way too large energy value #14

Closed programmerjake closed 10 months ago

programmerjake commented 10 months ago

Describe the bug A Gold Nugget randomly has a waay too large energy value (16,384). A Gold Ingot's energy value isn't affected. I've also seen this happen with Iron Nuggets (though, for iron, not yet in the latest version, so that may be fixed), and with Carbon Steel.

Expected behavior Gold Nuggets have 1/9th the energy of Gold Ingots.

Game (e.g. Minetest Game) MineClone2 with latest versions of Technic Plus Beta and ExchangeClone.

Screenshots Bad Gold Nugget energy: screenshot_20240110_191450 Bad Carbon Steel energy: screenshot_20240110_192116

Additional context Previous discussion

programmerjake commented 10 months ago

as mentioned previously, if it doesn't show up, restart the world 3-4 times, checking each time, it is randomly chosen at world startup.

ThePython10110 commented 10 months ago

The gold is caused by a similar thing as the iron: I left gold ingots to be automatically calculated, since I didn't think there was any way to make gold nuggets without the ingots... but I forgot about gold horse armor. So I fixed that.

The issue with the carbon steel is actually a problem with Technic where you can grind one iron nugget down into two iron dust (same with gold). ExchangeClone sometimes notices this and sets the energy value accordingly, but sometimes doesn't (depends on whether iron dust's energy value is registered before or after iron nuggets). I'm going to report this in the Technic repo right now.