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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user