@quenty/ugcsanitize 1.4.0-canary.544.de8fcee.0 → 1.4.1-canary.545.2374fb2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +20 -1
- package/package.json +7 -7
- package/src/Shared/DisableHatParticles.lua +8 -6
package/CHANGELOG.md
CHANGED
|
@@ -3,7 +3,26 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
## [1.4.1-canary.545.2374fb2.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/ugcsanitize@1.4.0...@quenty/ugcsanitize@1.4.1-canary.545.2374fb2.0) (2025-04-05)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* Add types to packages ([2374fb2](https://github.com/Quenty/NevermoreEngine/commit/2374fb2b043cfbe0e9b507b3316eec46a4e353a0))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# [1.4.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/ugcsanitize@1.3.2...@quenty/ugcsanitize@1.4.0) (2025-04-02)
|
|
18
|
+
|
|
19
|
+
**Note:** Version bump only for package @quenty/ugcsanitize
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
## [1.3.2](https://github.com/Quenty/NevermoreEngine/compare/@quenty/ugcsanitize@1.3.1...@quenty/ugcsanitize@1.3.2) (2025-03-31)
|
|
7
26
|
|
|
8
27
|
**Note:** Version bump only for package @quenty/ugcsanitize
|
|
9
28
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quenty/ugcsanitize",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.1-canary.545.2374fb2.0",
|
|
4
4
|
"description": "Sanitizes UGC hats and other items",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Roblox",
|
|
@@ -25,14 +25,14 @@
|
|
|
25
25
|
"Quenty"
|
|
26
26
|
],
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@quenty/baseobject": "10.8.0",
|
|
29
|
-
"@quenty/instanceutils": "13.17.
|
|
30
|
-
"@quenty/loader": "10.8.0",
|
|
31
|
-
"@quenty/maid": "3.4.0",
|
|
32
|
-
"@quenty/string": "3.3.
|
|
28
|
+
"@quenty/baseobject": "10.8.1-canary.545.2374fb2.0",
|
|
29
|
+
"@quenty/instanceutils": "13.17.1-canary.545.2374fb2.0",
|
|
30
|
+
"@quenty/loader": "10.8.1-canary.545.2374fb2.0",
|
|
31
|
+
"@quenty/maid": "3.4.1-canary.545.2374fb2.0",
|
|
32
|
+
"@quenty/string": "3.3.2-canary.545.2374fb2.0"
|
|
33
33
|
},
|
|
34
34
|
"publishConfig": {
|
|
35
35
|
"access": "public"
|
|
36
36
|
},
|
|
37
|
-
"gitHead": "
|
|
37
|
+
"gitHead": "2374fb2b043cfbe0e9b507b3316eec46a4e353a0"
|
|
38
38
|
}
|
|
@@ -12,7 +12,7 @@ local DisableHatParticles = setmetatable({}, BaseObject)
|
|
|
12
12
|
DisableHatParticles.ClassName = "DisableHatParticles"
|
|
13
13
|
DisableHatParticles.__index = DisableHatParticles
|
|
14
14
|
|
|
15
|
-
function DisableHatParticles.new(character)
|
|
15
|
+
function DisableHatParticles.new(character: Model)
|
|
16
16
|
local self = setmetatable(BaseObject.new(character), DisableHatParticles)
|
|
17
17
|
|
|
18
18
|
self._maid:GiveTask(RxInstanceUtils.observeChildrenOfClassBrio(self._obj, "Accessory"):Subscribe(function(brio)
|
|
@@ -27,7 +27,7 @@ function DisableHatParticles.new(character)
|
|
|
27
27
|
return self
|
|
28
28
|
end
|
|
29
29
|
|
|
30
|
-
function DisableHatParticles:_handleAccessory(maid, accessory)
|
|
30
|
+
function DisableHatParticles:_handleAccessory(maid, accessory: Accessory)
|
|
31
31
|
maid:GiveTask(accessory.DescendantAdded:Connect(function(descendant)
|
|
32
32
|
self:_handleAccessoryDescendant(maid, descendant)
|
|
33
33
|
end))
|
|
@@ -35,16 +35,18 @@ function DisableHatParticles:_handleAccessory(maid, accessory)
|
|
|
35
35
|
maid[descendant] = nil
|
|
36
36
|
end))
|
|
37
37
|
|
|
38
|
-
for _, descendant in
|
|
38
|
+
for _, descendant in accessory:GetDescendants() do
|
|
39
39
|
self:_handleAccessoryDescendant(maid, descendant)
|
|
40
40
|
end
|
|
41
41
|
end
|
|
42
42
|
|
|
43
43
|
function DisableHatParticles:_handleAccessoryDescendant(maid, descendant)
|
|
44
|
-
if
|
|
44
|
+
if
|
|
45
|
+
descendant:IsA("Fire")
|
|
45
46
|
or descendant:IsA("Sparkles")
|
|
46
47
|
or descendant:IsA("Smoke")
|
|
47
|
-
or descendant:IsA("ParticleEmitter")
|
|
48
|
+
or descendant:IsA("ParticleEmitter")
|
|
49
|
+
then
|
|
48
50
|
if descendant.Enabled then
|
|
49
51
|
maid[descendant] = function()
|
|
50
52
|
descendant.Enabled = true
|
|
@@ -98,4 +100,4 @@ function DisableHatParticles:_isSound(descendant)
|
|
|
98
100
|
return descendant:IsA("Sound") and descendant.SoundGroup == nil
|
|
99
101
|
end
|
|
100
102
|
|
|
101
|
-
return DisableHatParticles
|
|
103
|
+
return DisableHatParticles
|