mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-08 18:51:19 +00:00
do DropItem TransformPoint in DropItemMessage just so we can copy paste from vanilla code more easily
This commit is contained in:
parent
d70de5e439
commit
80ec594919
@ -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;
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user