Skip to content

[Bug] get_star_emc() has problems(?) #27

Description

@Cookies7aaaaaaa

when using a star, when ever I put emc in it, it gives me this error:
ERROR[Main]: stack traceback: ERROR[Main]: ...in\..\mods\exchangeclone\zzzz_exchangeclone_init/lib.lua:142: in function 'get_star_emc' ERROR[Main]: ....\mods\exchangeclone\exchangeclone/energy_collectors.lua:64: in function <....\mods\exchangeclone\exchangeclone/energy_collectors.lua:41>

I don't really know why it's causing the issue, but this is the code where the error is from:
function exchangeclone.set_star_emc(inventory, listname, index, amount) if not inventory or not amount or amount < 0 then return end if not listname then listname = "main" end if not index then index = 1 end local itemstack = inventory:get_stack(listname, index) local new_stack = exchangeclone.set_star_itemstack_emc(itemstack, amount) if not new_stack then return end inventory:set_stack(listname, index, new_stack) end
(zzzz_exhgcnageclone_init/lib.lua)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions