Item respawn bugfix

Line 124
Removed extra spaces
This commit is contained in:
ChocoTaco 2022-04-03 15:33:47 -04:00
parent 57778142c6
commit 2ae5b4c489

View file

@ -121,7 +121,13 @@ function HandInventory::onCollision(%data, %obj, %col)
%col.incInventory(%ammoName, %obj.ammoStore);
//-------------------------------------------------------------------------------------------
serverPlay3D(ItemPickupSound, %col.getTransform());
%obj.respawn();
//Item respawn fix
if (%obj.isStatic())
%obj.respawn();
else
%obj.delete();
if (%col.client > 0)
messageClient(%col.client, 'MsgItemPickup', '\c0You picked up %1.', %data.pickUpName);
}