Skip to content

Commit

Permalink
Merge pull request #7 from flowerLoader/fix-release
Browse files Browse the repository at this point in the history
fix an issue with storing refs to main object
  • Loading branch information
RobynLlama committed May 17, 2024
2 parents 9541323 + dee2423 commit ef5c32e
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions flowerful.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,6 @@ const flowerAPI: FlowerAPI =
GetGameMain: GetGameMain,
};

//@ts-ignore
let GameMain = tWgm;

//All plugins live here
const Plugins: { [key: string]: IFlowerPlugin } = {};

Expand All @@ -39,7 +36,8 @@ const Plugins: { [key: string]: IFlowerPlugin } = {};

function GetGameMain()
{
return GameMain;
//@ts-ignore
return tWgm;
}

async function LoadAllPlugins()
Expand Down

0 comments on commit ef5c32e

Please sign in to comment.