do DropItem TransformPoint in DropItemMessage just so we can copy paste from vanilla code more easily

This commit is contained in:
JohnCorby 2022-03-04 11:36:52 -08:00
parent d70de5e439
commit 80ec594919
2 changed files with 2 additions and 2 deletions

View File

@ -41,7 +41,7 @@ internal class DropItemMessage : QSBWorldObjectMessage<IQSBItem>
public override void OnReceiveRemote()
{
var sector = SectorId.GetWorldObject<QSBSector>().AttachedObject;
WorldObject.DropItem(Position, Normal, sector);
WorldObject.DropItem(sector.transform.TransformPoint(Position), Normal, sector);
var player = QSBPlayerManager.GetPlayer(From);
player.HeldItem = WorldObject;

View File

@ -86,7 +86,7 @@ internal class QSBItem<T> : WorldObject<T>, IQSBItem
=> AttachedObject.PickUpItem(holdTransform);
public void DropItem(Vector3 position, Vector3 normal, Sector sector) =>
AttachedObject.DropItem(sector.transform.TransformPoint(position), normal, sector.transform, sector, null);
AttachedObject.DropItem(position, normal, sector.transform, sector, null);
public void OnCompleteUnsocket()
=> AttachedObject.OnCompleteUnsocket();