From e7a35135fe13d2b10fabcfd0de240bd2dce3f7de Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Tue, 13 Oct 2026 05:02:07 +0200 Subject: [PATCH] PickupData: gear only (CreateInstance for a consumable throws); the previous commit did not build Co-Authored-By: Claude Opus 5.5 --- Assets/Scripts/ServerShared/Behaviors/Pickup.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Assets/Scripts/ServerShared/Behaviors/Pickup.cs b/Assets/Scripts/ServerShared/Behaviors/Pickup.cs index 8ff253e87..80f5ddfb8 100644 --- a/Assets/Scripts/ServerShared/Behaviors/Pickup.cs +++ b/Assets/Scripts/ServerShared/Behaviors/Pickup.cs @@ -42,6 +42,10 @@ public class PickupData : BehaviorData { return new Pickup(this, item); } + + // A beam is a piece of gear the pilot holds on; no consumable carries one. + public override Behavior CreateInstance(ConsumableItemEffect item) => + throw new NotSupportedException("pickup: gear only"); } // Owns this ship's beam power and its one grab. Power is written only here; Zone owns the held item's pose.