mirror of
https://github.com/ChocoTaco1/TacoServer.git
synced 2026-01-19 16:14:44 +00:00
Item respawn bugfix
Line 124 Removed extra spaces
This commit is contained in:
parent
57778142c6
commit
2ae5b4c489
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue