Mineral Scanner (#31390)

* Mineral Scanner

* doink

* review

* sunday funday

* review and fix bugs i think?

* Update MiningOverlay.cs
This commit is contained in:
Nemanja
2024-09-06 10:05:53 -04:00
committed by GitHub
parent 582a644c24
commit 8599251825
25 changed files with 568 additions and 23 deletions

View File

@@ -282,7 +282,7 @@ public sealed class ItemToggleSystem : EntitySystem
if (comp.ActiveSound != null && comp.PlayingStream == null)
{
var loop = AudioParams.Default.WithLoop(true);
var loop = comp.ActiveSound.Params.WithLoop(true);
var stream = args.Predicted
? _audio.PlayPredicted(comp.ActiveSound, uid, args.User, loop)
: _audio.PlayPvs(comp.ActiveSound, uid, loop);