Skip to content

Commit

Permalink
fix bug again (remove frozen tbl)
Browse files Browse the repository at this point in the history
  • Loading branch information
James committed Mar 5, 2024
1 parent 702be74 commit 8007683
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 11 deletions.
16 changes: 16 additions & 0 deletions docs/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

---
Expand Down
14 changes: 4 additions & 10 deletions src/init.luau
Original file line number Diff line number Diff line change
Expand Up @@ -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?)
Expand Down
2 changes: 1 addition & 1 deletion wally.toml
Original file line number Diff line number Diff line change
@@ -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"

Expand Down

0 comments on commit 8007683

Please sign in to comment.