Lemonymous Posted April 17, 2016 Share Posted April 17, 2016 Due to a request, i have updated this library to work with the game as of 17.04.2016. Please let me know if there are any issues. Problem: Using modApi:addItemDef() to modify an item already in itemdefs.lua will cause problems. Adding this library to your mod, will fix modApi:addItemDef() so you can modify items with it.How to use: This is not a full mod. If you want the functionality all you need to do is add the file lib_modApiFix.lua to your mod's scripts folder and add the following line anywhere in modinit.lua: include( scriptPath .. "/lib_modApiFix" ).enable( modApi ) You can also enable debugging with: include( scriptPath .. "/lib_modApiFix" ).enable( modApi, true )Library download: 1.1.0: lib_modApiFix.lua Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.
Please be aware that the content of this thread may be outdated and no longer applicable.