Jump to content

Code related issues


bum0303
  • Fixed

Well, I'm looking at the container_replica code, and it looks like there's something wrong with it.

function Container:HasItemWithTag(tag, amount)
    if self.inst.components.container ~= nil then
        return self.inst.components.container:HasTag(tag, amount) -- There seems to be a problem....
    elseif self.classified ~= nil and self.opener ~= nil then
        return self.classified:HasItemWithTag(tag, amount)
    else
        return amount <= 0, 0
    end
end

It's written like this on the code. Is this normal?


Steps to Reproduce

Check container_replica.lua




User Feedback


A developer has marked this issue as fixed. This means that the issue has been addressed in the current development build and will likely be in the next update.
self.inst.components.container:HasTag(tag, amount)

that method doesnt exist

Edited by bum0303

Share this comment


Link to comment
Share on other sites



Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
  • Create New...