Merge pull request #194 from frosty-dev/DildoFixV2
Попытка починить дилдо...
This commit is contained in:
@@ -23,11 +23,17 @@ public sealed class VibratorSystem : SharedVibratorSystem
|
|||||||
if (args.Key != _vibration || !component.IsVibrating)
|
if (args.Key != _vibration || !component.IsVibrating)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
if (_animationSystem.HasRunningAnimation(uid, _vibration))
|
||||||
|
return;
|
||||||
|
|
||||||
_animationSystem.Play(uid, GetAnimation(), _vibration);
|
_animationSystem.Play(uid, GetAnimation(), _vibration);
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void ToggleVibrate(EntityUid uid, VibratorComponent component)
|
public override void ToggleVibrate(EntityUid uid, VibratorComponent component)
|
||||||
{
|
{
|
||||||
|
if (_animationSystem.HasRunningAnimation(uid, _vibration))
|
||||||
|
return;
|
||||||
|
|
||||||
if (component.IsVibrating)
|
if (component.IsVibrating)
|
||||||
_animationSystem.Play(uid, GetAnimation(), _vibration);
|
_animationSystem.Play(uid, GetAnimation(), _vibration);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user