This could make any mod requiring the function incompatible with your mod and result in game breaking errors!
instead of overwriting, please try using this construction:
function Vanilla.Function(a,b,c,...)
-- insert new code here
vanilla_function(a,b,c,...) -- execute the UNMODIFIED vanilla function
-- inster new code here...
end```
Other modders will be thankful if you are doing this because mod users will then report less incompatibilities.







