Jump to content

Unusable Items Bug


SilverBisexual
  • Pending

Hello,

So, this bug happened to me today, and I think I figured out what caused it, but I am a bit unsure.

I had just grown a Giant Eggplant and was carrying it on my back. I decided to used the beeswax on it while it was still on my back, and then a little bit later I noticed I could not interact with certain items.

 


Steps to Reproduce

Grow giant produce (possibly specific to eggplant but unsure)

Carry it on your back

Use beeswax on it

Drop the produce

You should be unable to interact with certain things (can't open chest, use the premier gardeneer hat, etc)




User Feedback


This is a client-side issue which is caused due to the way HeavyLiftingActionFilter is pushed in Inventory replica:

local function _OnHeavyLiftingDirty(inst, classified)
    if inst ~= nil and inst.components.playeractionpicker ~= nil then
        if classified.heavylifting:value() then
            inst.components.playeractionpicker:PushActionFilter(HeavyLiftingActionFilter, 10)
        else
            inst.components.playeractionpicker:PopActionFilter(HeavyLiftingActionFilter)
        end
    end
end

This version should resolve the issue:

local function _OnHeavyLiftingDirty(inst, classified)
    if inst ~= nil and inst.components.playeractionpicker ~= nil then
        inst.components.playeractionpicker:PopActionFilter(HeavyLiftingActionFilter)
        if classified.heavylifting:value() then
            inst.components.playeractionpicker:PushActionFilter(HeavyLiftingActionFilter, 10)
        end
    end
end
  • Like 1

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...