Skip to content

Commit

Permalink
Merge branch 'development' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
1ForeverHD committed Jun 17, 2021
2 parents 44c16ac + f7cab54 commit e7a4517
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
7 changes: 7 additions & 0 deletions docs/changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
## [2.2.3] - June 17 2021
### Fixed
- The incorrect disabling of Seats and VehicleSeats within Part Zones.



--------
## [2.2.2] - June 4 2021
### Improved
- The accounting of character parts when removed/added via systems like HumanoidDescriptions.
Expand Down
2 changes: 1 addition & 1 deletion src/Zone/VERSION.lua
Original file line number Diff line number Diff line change
@@ -1 +1 @@
-- v2.2.2
-- v2.2.3
6 changes: 5 additions & 1 deletion src/Zone/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -610,7 +610,11 @@ function Zone:_partTouchedZone(part)
local regionConstructor = self:_getRegionConstructor(part)
local partMaid = self._maid:give(Maid.new())
trackingDict[part] = partMaid
part.CanTouch = false
local instanceClassesToIgnore = {Seat = true, VehicleSeat = true}
local instanceNamesToIgnore = {HumanoidRootPart = true}
if not (instanceClassesToIgnore[part.ClassName] or not instanceNamesToIgnore[part.Name]) then
part.CanTouch = false
end
--
local partVolume = round((part.Size.X * part.Size.Y * part.Size.Z), 5)
self.totalPartVolume += partVolume
Expand Down

0 comments on commit e7a4517

Please sign in to comment.