Jump to content

Issues related to vanilla code

Recommended Posts

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)
        return amount <= 0, 0

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

Edited by bum0303
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...