Skip to content

Overloaded functions bug #103

@umby24

Description

@umby24

In C#, I have an overloaded function, GetBlock(int) and GetBlock(string), which I am providing to Lua to be used.

If I run GetBlock(int) multiple times from lua, it is fine. However, once I have used the string overload, I can no longer use the int overload. It will default to the string overload every time.

Example code:
local newblock = G_Blocks:GetBlock(1)
local newblock2 = G_Blocks:GetBlock("Stone")
local newblock3 = G_Blocks:GetBlock(1)

newblock and newblock2 will function properly, but newblock3 will be attempting to run the string overload rather than the int.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions