mirror of
https://github.com/ChocoTaco1/TacoServer.git
synced 2026-01-20 00:24:49 +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);
|
%col.incInventory(%ammoName, %obj.ammoStore);
|
||||||
//-------------------------------------------------------------------------------------------
|
//-------------------------------------------------------------------------------------------
|
||||||
serverPlay3D(ItemPickupSound, %col.getTransform());
|
serverPlay3D(ItemPickupSound, %col.getTransform());
|
||||||
|
|
||||||
|
//Item respawn fix
|
||||||
|
if (%obj.isStatic())
|
||||||
%obj.respawn();
|
%obj.respawn();
|
||||||
|
else
|
||||||
|
%obj.delete();
|
||||||
|
|
||||||
if (%col.client > 0)
|
if (%col.client > 0)
|
||||||
messageClient(%col.client, 'MsgItemPickup', '\c0You picked up %1.', %data.pickUpName);
|
messageClient(%col.client, 'MsgItemPickup', '\c0You picked up %1.', %data.pickUpName);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue