Fixed oxygen tank & welding fuel tank crafting causing everyone to desync. The item condition NetEntityEvent was created before the spawn event of the item, preventing clients from reading the condition event because the item doesn't exist yet. Closes #617

This commit is contained in:
Joonas Rikkonen
2018-08-09 12:08:47 +03:00
parent f1a8db5b47
commit 45939a9144
3 changed files with 28 additions and 8 deletions
@@ -12,6 +12,7 @@ namespace Barotrauma.Items.Components
{
public readonly ItemPrefab TargetItem;
//TODO: refactor this (maybe make it a struct)
public readonly List<Tuple<ItemPrefab, int, float, bool>> RequiredItems;
public readonly float RequiredTime;