Content ecs containers (#22484)
This commit is contained in:
@@ -177,7 +177,7 @@ public sealed class AmeControllerSystem : EntitySystem
|
||||
if (!Exists(jar))
|
||||
return;
|
||||
|
||||
controller.JarSlot.Remove(jar!.Value);
|
||||
_containerSystem.Remove(jar!.Value, controller.JarSlot);
|
||||
UpdateUi(uid, controller);
|
||||
if (Exists(user))
|
||||
_handsSystem.PickupOrDrop(user, jar!.Value);
|
||||
@@ -303,7 +303,7 @@ public sealed class AmeControllerSystem : EntitySystem
|
||||
return;
|
||||
}
|
||||
|
||||
comp.JarSlot.Insert(args.Used);
|
||||
_containerSystem.Insert(args.Used, comp.JarSlot);
|
||||
_popupSystem.PopupEntity(Loc.GetString("ame-controller-component-interact-using-success"), uid, args.User, PopupType.Medium);
|
||||
|
||||
UpdateUi(uid, comp);
|
||||
|
||||
Reference in New Issue
Block a user