[0.13.11] Cannot set durability to 0
Posted: Tue Jul 26, 2016 4:17 pm
When I try to set the durability of a LuaItemStack to 0, I get an error saying that it has to be greater than or equal to zero.
This in the console causes it too (if you have an apropriate item in the first slot obviously ):
I'm not sure if you're actually supposed to be able to do it, but even if not it would be good to at least change the error message.
This in the console causes it too (if you have an apropriate item in the first slot obviously ):
Code: Select all
/c game.player.get_inventory(defines.inventory.player_main)[1].durability = 0