We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8bb77bf commit 16e8fe5Copy full SHA for 16e8fe5
OpenSR/scripts/server/objects/Pickup.as
@@ -50,6 +50,7 @@ tidy class PickupControl : Component_PickupControl {
50
Object@[] protectors;
51
vec3d offset;
52
bool pickupDelta = false;
53
+ bool collected = false;
54
55
const CampType@ campType;
56
@@ -201,6 +202,9 @@ tidy class PickupControl : Component_PickupControl {
201
202
return;
203
if(isPickupProtected)
204
205
+ if(collected)
206
+ return;
207
+ collected = true;
208
type.onPickup(pickup, by);
209
obj.destroy();
210
}
0 commit comments