User feedback for when you miss throwing something in disposals (#11426)

* user feedback for when you miss throwing something in disposals

* Update missed message

Co-authored-by: theashtronaut <112137107+theashtronaut@users.noreply.github.com>

* Update Content.Server/Disposal/Unit/EntitySystems/DisposalUnitSystem.cs

Co-authored-by: Kara <lunarautomaton6@gmail.com>

* missing nullable check

Co-authored-by: theashtronaut <112137107+theashtronaut@users.noreply.github.com>
Co-authored-by: Kara <lunarautomaton6@gmail.com>
This commit is contained in:
Mervill
2022-09-26 12:42:49 -07:00
committed by GitHub
parent 055f881b75
commit 03484d831a
2 changed files with 5 additions and 0 deletions

View File

@@ -285,6 +285,8 @@ namespace Content.Server.Disposal.Unit.EntitySystems
_robustRandom.NextDouble() > 0.75 ||
!component.Container.Insert(args.Thrown))
{
if (args.User.HasValue)
_popupSystem.PopupEntity(Loc.GetString("disposal-unit-thrown-missed"), args.Thrown, Filter.Pvs(args.User.Value));
return;
}