Jump to content

Found a Bug in Vanilla Code while modding


Aquaterion
  • Fixed

Basically in the tool component code, there's a function ( Tool:OnRemoveFromEntity() ) that is incorrect I believe, everytime it got called it crashed the game, changing the v in: self.inst:RemoveTag(v.id.."_tool") to k fixes it. as v returns the effectiveness rather than the table of the tool type.

[string "scripts/components/tool.lua"]:18: attempt to index local 'v' (a number value)


Steps to Reproduce
Remove the tool component from a tool either via console or a modded item.



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.

There are no comments to display.



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