Skip to content

Commit 8e44fd4

Browse files
authored
Merge pull request #182 from cortex-command-community/tiny-throwablelua-fix
fix Throwable.lua not checking for ismosprite
2 parents db9e4d2 + c2e69d1 commit 8e44fd4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Data/Ronin.rte/Devices/Shared/Throwable.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ function OnDetach(self, exParent)
88
end
99

1010
function OnCollideWithMO(self, mo, rootMO)
11-
if self.thrown then
11+
if self.thrown and IsMOSprite(mo) then
1212
local force = self.PrevVel * self.impactPower;
1313
mo:AddImpulseForce(force, Vector());
1414
if force.Magnitude * self.Sharpness > mo.Material.StructuralIntegrity then

0 commit comments

Comments
 (0)