Skip to content

Commit 16e8fe5

Browse files
committed
Ported a fixed variant of BlindMindStudios/StarRuler2-Source#57.
1 parent 8bb77bf commit 16e8fe5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

OpenSR/scripts/server/objects/Pickup.as

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ tidy class PickupControl : Component_PickupControl {
5050
Object@[] protectors;
5151
vec3d offset;
5252
bool pickupDelta = false;
53+
bool collected = false;
5354

5455
const CampType@ campType;
5556

@@ -201,6 +202,9 @@ tidy class PickupControl : Component_PickupControl {
201202
return;
202203
if(isPickupProtected)
203204
return;
205+
if(collected)
206+
return;
207+
collected = true;
204208
type.onPickup(pickup, by);
205209
obj.destroy();
206210
}

0 commit comments

Comments
 (0)