From d6394698b21af8d3b8cdb07d726e80eae4e288fa Mon Sep 17 00:00:00 2001 From: mircearoata Date: Mon, 16 Sep 2024 18:24:24 +0200 Subject: [PATCH] Fix widget hooks being disabled on the client instead of on dedicated servers --- .../Source/SML/Private/Patching/WidgetBlueprintHookManager.cpp | 2 +- Mods/SML/Source/SML/Private/Tooltip/ItemTooltipSubsystem.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Mods/SML/Source/SML/Private/Patching/WidgetBlueprintHookManager.cpp b/Mods/SML/Source/SML/Private/Patching/WidgetBlueprintHookManager.cpp index 2b61fe0dfd..30ddfdf9c4 100644 --- a/Mods/SML/Source/SML/Private/Patching/WidgetBlueprintHookManager.cpp +++ b/Mods/SML/Source/SML/Private/Patching/WidgetBlueprintHookManager.cpp @@ -246,7 +246,7 @@ void UWidgetBlueprintHookManager::RegisterWidgetBlueprintHook(UWidgetBlueprintHo } // Widgets are not included on servers - if (!FPlatformProperties::IsServerOnly()) { + if (FPlatformProperties::IsServerOnly()) { return; } diff --git a/Mods/SML/Source/SML/Private/Tooltip/ItemTooltipSubsystem.cpp b/Mods/SML/Source/SML/Private/Tooltip/ItemTooltipSubsystem.cpp index d2c20c191e..68a40e720b 100644 --- a/Mods/SML/Source/SML/Private/Tooltip/ItemTooltipSubsystem.cpp +++ b/Mods/SML/Source/SML/Private/Tooltip/ItemTooltipSubsystem.cpp @@ -57,7 +57,7 @@ FInventoryStack GetStackFromSlot(UObject* SlotWidget) { void UItemTooltipSubsystem::InitializePatches() { // Widgets are not included on servers - if (!FPlatformProperties::IsServerOnly()) { + if (FPlatformProperties::IsServerOnly()) { return; }