Skip to content

Commit

Permalink
virtual selfantag
Browse files Browse the repository at this point in the history
  • Loading branch information
RedFoxIV committed Dec 11, 2024
1 parent b137558 commit 170b364
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,8 @@ private void Recycle(EntityUid item, EventItemDispenserComponent comp, bool repl
/// <param name="comp"></param>
private void Dispense(EntityUid user, EventItemDispenserComponent comp)
{
var item = Spawn(comp.DispensingPrototype, new Robust.Shared.Map.EntityCoordinates(user, default)); // am i retarded?
var mapPos = _transform.ToMapCoordinates(new Robust.Shared.Map.EntityCoordinates(user, default));
var item = Spawn(comp.DispensingPrototype, mapPos);
var ev = new ItemPurchasedEvent(user);
RaiseLocalEvent(item, ref ev); // erectin' a vendomat
var dispensedComp = AddComp<EventDispensedComponent>(item);
Expand Down

0 comments on commit 170b364

Please sign in to comment.