Essentials no longer requires the "Plugins" folder to exist

This commit is contained in:
Maruno17
2022-06-19 17:40:34 +01:00
parent 9261851701
commit 8b3d95943a

View File

@@ -484,7 +484,7 @@ module PluginManager
# Get a list of all the plugin directories to inspect # Get a list of all the plugin directories to inspect
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
def self.listAll def self.listAll
return [] if !$DEBUG || safeExists?("Game.rgssad") return [] if !$DEBUG || safeExists?("Game.rgssad") || !Dir.safe?("Plugins")
# get a list of all directories in the `Plugins/` folder # get a list of all directories in the `Plugins/` folder
dirs = [] dirs = []
Dir.get("Plugins").each { |d| dirs.push(d) if Dir.safe?(d) } Dir.get("Plugins").each { |d| dirs.push(d) if Dir.safe?(d) }