FishFoxFederation / ft_minecraft

Recode Minecraft from scratch.
3 stars 0 forks source link

New items arent diplayed in the toolbar #111

Closed afaure42 closed 6 days ago

afaure42 commented 6 days ago

I added a wood block in the Block.cpp file as well as the Item.cpp file I added the texture in the assets folder and the path to the texture I added the item id to the toolbar of the player

I can place wooden blocks with no problems but the item isnt displayed in the toolbar

Is there another step that i missed or is this a bug ?

SaumonDesMers commented 6 days ago

There was a local variable toolbar_items that overwritten the toolbar_item passed through the world scene. That's why the new items didn't show up. This issue is already solved in another branch so I'm going to close it.