From 800768365601d2dfa8db74c41371856c778923b2 Mon Sep 17 00:00:00 2001 From: James Date: Mon, 4 Mar 2024 21:13:15 -0600 Subject: [PATCH] fix bug again (remove frozen tbl) --- docs/changelog.md | 16 ++++++++++++++++ src/init.luau | 14 ++++---------- wally.toml | 2 +- 3 files changed, 21 insertions(+), 11 deletions(-) diff --git a/docs/changelog.md b/docs/changelog.md index 7df3bb02..01b30f4e 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -2,6 +2,22 @@ This is the changelog which is changed every update, and we follow semver. +## 7.0.2 + +--- + +### Added + +* Nothing + +### Improvements + +* Fix client once again + +### Removed + +* Frozen client tables; causing issues + ## 7.0.1 --- diff --git a/src/init.luau b/src/init.luau index 5b37b4ae..a764ccf3 100644 --- a/src/init.luau +++ b/src/init.luau @@ -48,23 +48,17 @@ end function Root.Client() assert(RunService:IsClient(), "Cannot get client interfaces on server") - if table.isfrozen(Client) then - return Client - end - local Player = PlayerService.LocalPlayer if not Player.Character then Player.CharacterAdded:Wait() end - if not table.isfrozen(Client) then - Client.PlayerGui = Player:WaitForChild("PlayerGui") :: PlayerGui - Client.PlayerBackpack = Player:WaitForChild("Backpack") :: Backpack - Client.Player = Player :: Player - end + Client.PlayerGui = Player:WaitForChild("PlayerGui") :: PlayerGui + Client.PlayerBackpack = Player:WaitForChild("Backpack") :: Backpack + Client.Player = Player :: Player - return table.freeze(Client) + return Client end function Root.ImportPackages(importList: { ModuleScript }, importDeep: boolean?) diff --git a/wally.toml b/wally.toml index 36137c5a..b9334fdf 100644 --- a/wally.toml +++ b/wally.toml @@ -1,7 +1,7 @@ [package] name = "canary-development/canaryengine" description = "A lightning fast & lightweight game framework for Roblox" -version = "7.0.1" +version = "7.0.2" registry = "https://github.com/UpliftGames/wally-index" realm = "shared"