Skip to content

Commit

Permalink
Fixed issue where dispensing items did not work with a dedicated serv…
Browse files Browse the repository at this point in the history
…er. (#1037)
  • Loading branch information
Ryan089 authored Feb 24, 2023
1 parent 0ef976c commit 0c7c036
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public override bool Start(InteractionEvent interactionEvent, InteractionReferen

if (target is VendingMachine vendingMachine)
{
vendingMachine.CmdDispenseProduct();
vendingMachine.DispenseProduct();
}
return false;
}
Expand Down
2 changes: 1 addition & 1 deletion Assets/Scripts/SS3D/Systems/Furniture/VendingMachine.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public void CmdDispenseProduct()
/// Dispenses the vending machine product at the dispensing transform position with a random rotation.
/// </summary>
[Server]
private void DispenseProduct()
public void DispenseProduct()
{
ItemSystem itemSystem = SystemLocator.Get<ItemSystem>();
Quaternion quaternion = Quaternion.Euler(new Vector3(Random.Range(0, 360), Random.Range(0, 360), Random.Range(0, 360)));
Expand Down

0 comments on commit 0c7c036

Please sign in to comment.