Skip to content

Commit

Permalink
Update CartridgeLoaderSystem.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
dvir001 committed Oct 19, 2024
1 parent 9371481 commit 0f7515c
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions Content.Server/CartridgeLoader/CartridgeLoaderSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
using Robust.Server.Containers;
using Robust.Server.GameObjects;
using Robust.Shared.Containers;
using Robust.Shared.GameObjects;
using Robust.Shared.Map;
using Robust.Shared.Player;

Expand Down Expand Up @@ -218,10 +217,6 @@ public bool InstallProgram(EntityUid loaderUid, string prototype, bool deinstall

RaiseLocalEvent(installedProgram, new CartridgeAddedEvent(loaderUid));
UpdateUserInterfaceState(loaderUid, loader);

if (cartridge.Disposable) // Frontier: Delete the cartridge after install if its disposable.
EntityManager.DeleteEntity(loader.CartridgeSlot.ContainerSlot!.ContainedEntity);

return true;
}

Expand Down Expand Up @@ -350,10 +345,6 @@ protected override void OnItemInserted(EntityUid uid, CartridgeLoaderComponent l

RaiseLocalEvent(args.Entity, new CartridgeAddedEvent(uid));
base.OnItemInserted(uid, loader, args);

var cartridgeUid = GetEntity(message.CartridgeUid);
if (cartridge != null && cartridge.AutoInstall) // Frontier: Try to auto install the program when inserted, QOL
InstallCartridge(uid, cartridge.LoaderUid, loader);
}

protected override void OnItemRemoved(EntityUid uid, CartridgeLoaderComponent loader, EntRemovedFromContainerMessage args)
Expand Down

0 comments on commit 0f7515c

Please sign in to comment.