From 8a9b2fd336d081ab6886435ed0b4ce019d48f724 Mon Sep 17 00:00:00 2001 From: Tropical <42101043+tropicaaal@users.noreply.github.com> Date: Wed, 4 Mar 2026 16:01:49 -0600 Subject: [PATCH] fix: link `Minecraft.World` to `Minecraft.Client` on linux --- Minecraft.Client/CMakeLists.txt | 2 ++ Minecraft.World/Item.cpp | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Minecraft.Client/CMakeLists.txt b/Minecraft.Client/CMakeLists.txt index 0856ea680..9847a044a 100644 --- a/Minecraft.Client/CMakeLists.txt +++ b/Minecraft.Client/CMakeLists.txt @@ -3986,6 +3986,8 @@ if("${CMAKE_VS_PLATFORM_NAME}" STREQUAL "Durango") ">" "xaudio2" ) +elseif("${CMAKE_VS_PLATFORM_NAME}" STREQUAL "Linux") + set(ADDITIONAL_LIBRARY_DEPENDENCIES "Minecraft.World") elseif("${CMAKE_VS_PLATFORM_NAME}" STREQUAL "ORBIS") set(ADDITIONAL_LIBRARY_DEPENDENCIES "$<$:" diff --git a/Minecraft.World/Item.cpp b/Minecraft.World/Item.cpp index 5d723ec57..03eb71f53 100644 --- a/Minecraft.World/Item.cpp +++ b/Minecraft.World/Item.cpp @@ -950,7 +950,7 @@ void Item::registerIcons(IconRegister *iconRegister) 4J: These are necesary on the PS3. (and 4 and Vita). */ -#if (defined __PS3__ || defined __ORBIS__ || defined __PSVITA__) +#if (defined __PS3__ || defined __ORBIS__ || defined __PSVITA__ || defined __linux__) const int Item::shovel_iron_Id ; const int Item::pickAxe_iron_Id ; const int Item::hatchet_iron_Id ;