Skip to content

Commit

Permalink
Fix script injection erroring
Browse files Browse the repository at this point in the history
- Fix create-release
  • Loading branch information
Blupo committed Mar 9, 2021
1 parent 3b7d275 commit 3c8cd04
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@ jobs:
ALLOW_EMPTY_CHANGELOG: "false"
ALLOW_TAG_PREFIX: "true"
with:
args: ./ColorPane.rbxm
args: ./ColorPane.rbxmx
4 changes: 4 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## [0.1.1] - 2021-03-09
### Changed
- Now gracefully handles script injection

## [0.1.0] - 2021-03-09
### Added
- ColorPane first release
9 changes: 8 additions & 1 deletion src/ColorPane.server.lua
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,12 @@ else
API.Name = "ColorPane"

require(API).init(plugin)
API.Parent = CoreGui

local success = pcall(function()
API.Parent = CoreGui
end)

if (not success) then
warn("ColorPane requires script injection to expose the API to developers. Please allow the permission and reload the plugin.")
end
end

0 comments on commit 3c8cd04

Please sign in to comment.