diff --git a/code/__DEFINES/server_tools.dm b/code/__DEFINES/server_tools.dm index a444caf02a..a1764880c3 100644 --- a/code/__DEFINES/server_tools.dm +++ b/code/__DEFINES/server_tools.dm @@ -1,5 +1,5 @@ // /tg/station 13 server tools API -#define SERVICE_API_VERSION_STRING "3.2.0.1" +#define SERVICE_API_VERSION_STRING "3.2.0.2" //CONFIGURATION //use this define if you want to do configuration outside of this file @@ -104,6 +104,7 @@ The MIT License Copyright (c) 2017 Jordan Brown + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to diff --git a/code/modules/server_tools/st_interface.dm b/code/modules/server_tools/st_interface.dm index b0b1b0a43c..ca7d54695b 100644 --- a/code/modules/server_tools/st_interface.dm +++ b/code/modules/server_tools/st_interface.dm @@ -15,7 +15,12 @@ SERVER_TOOLS_DEFINE_AND_SET_GLOBAL(server_tools_api_compatible, FALSE) ExportService("[SERVICE_REQUEST_API_VERSION] [SERVER_TOOLS_API_VERSION]", TRUE) /proc/RunningService(skip_compat_check = FALSE) - return (skip_compat_check || SERVER_TOOLS_READ_GLOBAL(server_tools_api_compatible)) && world.params[SERVICE_WORLD_PARAM] != null + if(!skip_compat_check && !SERVER_TOOLS_READ_GLOBAL(server_tools_api_compatible)) + return FALSE + . = world.params[SERVICE_WORLD_PARAM] != null + if(. && world.system_type != MS_WINDOWS) + SERVER_TOOLS_LOG("Warning: Server tools world parameter detected but not running on Windows. Aborting initialization!") + return FALSE /proc/ServiceVersion() if(RunningService(TRUE))