Fix some some bugs when client-side prediction is disabled (#18241)

This commit is contained in:
Leon Friedrich
2023-07-24 21:59:31 +12:00
committed by GitHub
parent b0f815cdc6
commit a4fc332846
4 changed files with 5 additions and 4 deletions

View File

@@ -118,7 +118,7 @@ public sealed class DragDropSystem : SharedDragDropSystem
_dropTargetOutOfRangeShader = _prototypeManager.Index<ShaderPrototype>(ShaderDropTargetOutOfRange).Instance();
// needs to fire on mouseup and mousedown so we can detect a drag / drop
CommandBinds.Builder
.BindBefore(EngineKeyFunctions.Use, new PointerInputCmdHandler(OnUse, false), new[] { typeof(SharedInteractionSystem) })
.BindBefore(EngineKeyFunctions.Use, new PointerInputCmdHandler(OnUse, false, true), new[] { typeof(SharedInteractionSystem) })
.Register<DragDropSystem>();
}