Check for um_plugin_playername

This commit is contained in:
luk3yx 2023-08-13 19:49:13 +12:00
parent 1c9e43d471
commit ae27316629
2 changed files with 3 additions and 2 deletions

View File

@ -52,7 +52,8 @@ local function set_if_exists(name, balance)
end
-- Register money3 as a backend for unified_money
if minetest.get_modpath("um_core") then
if minetest.get_modpath("um_core") and
minetest.get_modpath("um_plugin_playername") then
local function make_canonical_name_cache()
if minetest.global_exists("canonical_name") then
return canonical_name.get

View File

@ -1,4 +1,4 @@
name = money3
description = Adds /money.
optional_depends = canonical_name, locked_sign, lurkcoin, um_core
optional_depends = canonical_name, locked_sign, lurkcoin, um_core, um_plugin_playername
supported_games = *