diff --git a/package.json b/package.json index 8ed3b01..59e23aa 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@boatbomber/windshake", - "version": "2.0.1", + "version": "2.0.2", "license": "MIT", "repository": { "type": "git", diff --git a/src/Settings.lua b/src/Settings.lua index 93022e7..4f051c3 100644 --- a/src/Settings.lua +++ b/src/Settings.lua @@ -18,7 +18,7 @@ function Settings.new(object: BasePart | Bone | ModuleScript) objectSettings.WindPower = if typeof(WindPower) == SettingTypes.WindPower then WindPower else nil objectSettings.WindSpeed = if typeof(WindSpeed) == SettingTypes.WindSpeed then WindSpeed else nil objectSettings.WindDirection = if typeof(WindDirection) == SettingTypes.WindDirection - then WindDirection.Unit + then (if WindDirection.Magnitude > 0 then WindDirection.Unit else Vector3.zero) else nil objectSettings.PivotOffset = if object:IsA("BasePart") then object.PivotOffset else nil objectSettings.PivotOffsetInverse = if typeof(objectSettings.PivotOffset) == "CFrame" @@ -40,7 +40,7 @@ function Settings.new(object: BasePart | Bone | ModuleScript) local DirectionConnection = object:GetAttributeChangedSignal("WindDirection"):Connect(function() WindDirection = object:GetAttribute("WindDirection") objectSettings.WindDirection = if typeof(WindDirection) == SettingTypes.WindDirection - then WindDirection.Unit + then (if WindDirection.Magnitude > 0 then WindDirection.Unit else Vector3.zero) else nil end) diff --git a/wally.toml b/wally.toml index e810ef5..9ba3849 100644 --- a/wally.toml +++ b/wally.toml @@ -1,7 +1,7 @@ [package] name = "boatbomber/windshake" description = "High performance wind effect for leaves and foliage" -version = "2.0.1" +version = "2.0.2" license = "MIT" authors = ["boatbomber (https://boatbomber.com)"] registry = "https://github.com/upliftgames/wally-index"