Skip to content

Commit 3c8cd04

Browse files
committed
Fix script injection erroring
- Fix create-release
1 parent 3b7d275 commit 3c8cd04

File tree

3 files changed

+13
-2
lines changed

3 files changed

+13
-2
lines changed

.github/workflows/create-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,4 @@ jobs:
3333
ALLOW_EMPTY_CHANGELOG: "false"
3434
ALLOW_TAG_PREFIX: "true"
3535
with:
36-
args: ./ColorPane.rbxm
36+
args: ./ColorPane.rbxmx

changelog.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## [0.1.1] - 2021-03-09
2+
### Changed
3+
- Now gracefully handles script injection
4+
15
## [0.1.0] - 2021-03-09
26
### Added
37
- ColorPane first release

src/ColorPane.server.lua

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,12 @@ else
1414
API.Name = "ColorPane"
1515

1616
require(API).init(plugin)
17-
API.Parent = CoreGui
17+
18+
local success = pcall(function()
19+
API.Parent = CoreGui
20+
end)
21+
22+
if (not success) then
23+
warn("ColorPane requires script injection to expose the API to developers. Please allow the permission and reload the plugin.")
24+
end
1825
end

0 commit comments

Comments
 (0)