LatheComponent indentation fix
Corrected indentation for the switch case.
This commit is contained in:
@@ -64,38 +64,39 @@ namespace Content.Server.GameObjects.Components.Research
|
|||||||
{
|
{
|
||||||
if (!Powered)
|
if (!Powered)
|
||||||
return;
|
return;
|
||||||
switch (message.Message)
|
|
||||||
{
|
|
||||||
case LatheQueueRecipeMessage msg:
|
|
||||||
_prototypeManager.TryIndex(msg.ID, out LatheRecipePrototype recipe);
|
|
||||||
if (recipe != null)
|
|
||||||
for (var i = 0; i < msg.Quantity; i++)
|
|
||||||
{
|
|
||||||
Queue.Enqueue(recipe);
|
|
||||||
_userInterface.SendMessage(new LatheFullQueueMessage(GetIDQueue()));
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
case LatheSyncRequestMessage msg:
|
|
||||||
if (!Owner.TryGetComponent(out MaterialStorageComponent storage)) return;
|
|
||||||
_userInterface.SendMessage(new LatheFullQueueMessage(GetIDQueue()));
|
|
||||||
if (_producingRecipe != null)
|
|
||||||
_userInterface.SendMessage(new LatheProducingRecipeMessage(_producingRecipe.ID));
|
|
||||||
break;
|
|
||||||
|
|
||||||
case LatheServerSelectionMessage msg:
|
switch (message.Message)
|
||||||
if (!Owner.TryGetComponent(out ResearchClientComponent researchClient)) return;
|
{
|
||||||
researchClient.OpenUserInterface(message.Session);
|
case LatheQueueRecipeMessage msg:
|
||||||
break;
|
_prototypeManager.TryIndex(msg.ID, out LatheRecipePrototype recipe);
|
||||||
|
if (recipe != null)
|
||||||
|
for (var i = 0; i < msg.Quantity; i++)
|
||||||
|
{
|
||||||
|
Queue.Enqueue(recipe);
|
||||||
|
_userInterface.SendMessage(new LatheFullQueueMessage(GetIDQueue()));
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
case LatheSyncRequestMessage msg:
|
||||||
|
if (!Owner.TryGetComponent(out MaterialStorageComponent storage)) return;
|
||||||
|
_userInterface.SendMessage(new LatheFullQueueMessage(GetIDQueue()));
|
||||||
|
if (_producingRecipe != null)
|
||||||
|
_userInterface.SendMessage(new LatheProducingRecipeMessage(_producingRecipe.ID));
|
||||||
|
break;
|
||||||
|
|
||||||
case LatheServerSyncMessage msg:
|
case LatheServerSelectionMessage msg:
|
||||||
if (!Owner.TryGetComponent(out TechnologyDatabaseComponent database)
|
if (!Owner.TryGetComponent(out ResearchClientComponent researchClient)) return;
|
||||||
|| !Owner.TryGetComponent(out ProtolatheDatabaseComponent protoDatabase)) return;
|
researchClient.OpenUserInterface(message.Session);
|
||||||
|
break;
|
||||||
|
|
||||||
if (database.SyncWithServer())
|
case LatheServerSyncMessage msg:
|
||||||
protoDatabase.Sync();
|
if (!Owner.TryGetComponent(out TechnologyDatabaseComponent database)
|
||||||
|
|| !Owner.TryGetComponent(out ProtolatheDatabaseComponent protoDatabase)) return;
|
||||||
|
|
||||||
break;
|
if (database.SyncWithServer())
|
||||||
}
|
protoDatabase.Sync();
|
||||||
|
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user