Zorz42 / Terralistic

Terralistic is a Terraria fan game. It has some technical stuff that I miss in Terraria, like: native mod support, good performance, online accounts, good ui and so on...
https://zorz42.itch.io/terralistic
GNU General Public License v3.0
25 stars 3 forks source link

temporary solution needs to be fixed => item counts not working on client #117

Closed iKramp closed 1 year ago

iKramp commented 2 years ago

item counts gets initialized with 0 for all items and then somehow messes itself up so update available recipes didn't work. Instead, the game now counts the items in the inventory, which is inefficient. After item_counts is fixed, delete line

return countItems((int)ingredient.first->id) >= ingredient.second;

in Shared/inventory/inventory.cpp in function canCraftRecipe, and uncomment the following line