Change the slot ID back to what it was to keep old map saves with an item in the slot loading correctly.
This also fixes the "You can't put this in the dispenser!" message not appearing when inserting an item without FitsInDispenserComponent because the whitelisted slot name wasn't changed.
await Interact();
// Eject beaker via BUI.
- var ev = new ItemSlotButtonPressedEvent(ReagentDispenserComponent.BeakerSlotId);
+ var ev = new ItemSlotButtonPressedEvent(SharedReagentDispenser.OutputSlotName);
await SendBui(ReagentDispenserUiKey.Key, ev);
// Beaker is back in the player's hands
[DataField]
public EntityWhitelist? StorageWhitelist;
- /// <summary>
- /// Slot for container to dispense into.
- /// </summary>
- public static string BeakerSlotId = "ReagentDispenser-beakerSlot";
-
[DataField]
public ItemSlot BeakerSlot = new();
_itemSlotsSystem.AddItemSlot(uid, component.StorageSlotIds[i], component.StorageSlots[i]);
}
- _itemSlotsSystem.AddItemSlot(uid, ReagentDispenserComponent.BeakerSlotId, component.BeakerSlot);
+ _itemSlotsSystem.AddItemSlot(uid, SharedReagentDispenser.OutputSlotName, component.BeakerSlot);
}
}
}
/// </summary>
public sealed class SharedReagentDispenser
{
- public const string OutputSlotName = "ReagentDispenser-beakerSlot";
+ public const string OutputSlotName = "beakerSlot";
}
[Serializable, NetSerializable]
containers:
machine_board: !type:Container
machine_parts: !type:Container
- ReagentDispenser-beakerSlot: !type:ContainerSlot
+ beakerSlot: !type:ContainerSlot
- type: StaticPrice
price: 1000
- type: Wires