Skip to content

Commit

Permalink
Merge pull request #65 from imezx/main-1
Browse files Browse the repository at this point in the history
update a outdated/deprecated Enum of RaycastFilterType
  • Loading branch information
1ForeverHD authored Jan 20, 2024
2 parents 47f9a3a + 59b9398 commit 85d76a0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Zone/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -303,13 +303,13 @@ function Zone:_update()
self.allZonePartsAreBlocks = allZonePartsAreBlocksNew

local zonePartsWhitelist = OverlapParams.new()
zonePartsWhitelist.FilterType = Enum.RaycastFilterType.Whitelist
zonePartsWhitelist.FilterType = Enum.RaycastFilterType.Include
zonePartsWhitelist.MaxParts = #zoneParts
zonePartsWhitelist.FilterDescendantsInstances = zoneParts
self.overlapParams.zonePartsWhitelist = zonePartsWhitelist

local zonePartsIgnorelist = OverlapParams.new()
zonePartsIgnorelist.FilterType = Enum.RaycastFilterType.Blacklist
zonePartsIgnorelist.FilterType = Enum.RaycastFilterType.Exclude
zonePartsIgnorelist.FilterDescendantsInstances = zoneParts
self.overlapParams.zonePartsIgnorelist = zonePartsIgnorelist

Expand Down Expand Up @@ -873,4 +873,4 @@ Zone.Destroy = Zone.destroy



return Zone
return Zone

0 comments on commit 85d76a0

Please sign in to comment.