Fixed wires not being dropped server-side when a player drops a connected wire without dragging it to their inventory first (or client-side when a host does so).

Closes #96
This commit is contained in:
Joonas Rikkonen
2017-12-13 18:34:23 +02:00
parent c4e894cb2e
commit 847e10d4a2
3 changed files with 41 additions and 5 deletions
@@ -102,11 +102,11 @@ namespace Barotrauma.Items.Components
{
if (GameMain.Client != null)
{
panel.Item.CreateClientEvent<ConnectionPanel>(panel);
panel.Item.CreateClientEvent(panel);
}
else if (GameMain.Server != null)
{
panel.Item.CreateServerEvent<ConnectionPanel>(panel);
panel.Item.CreateServerEvent(panel);
}
draggingConnected = null;