mirror of
https://github.com/Deathgarden-Rebirth/Deathgarden_Rebirth-Rewrite.git
synced 2026-09-10 04:05:22 -05:00
Added an admin tool to set multipliers for XP gain and Currency gain.
This commit is contained in:
6
dist/app/Models/AbstractFileBasedModel.php
vendored
6
dist/app/Models/AbstractFileBasedModel.php
vendored
@@ -30,7 +30,7 @@ public static function get(): ?static {
|
||||
function () {
|
||||
$data = static::getDisk()->get(static::FILE_NAME);
|
||||
|
||||
return $data === null ? null : unserialize($data);
|
||||
return $data === null ? static::getDefault() : unserialize($data);
|
||||
}
|
||||
);
|
||||
}
|
||||
@@ -38,4 +38,8 @@ function () {
|
||||
protected static function getDisk(): FilesystemAdapter {
|
||||
return static::$disk ?? static::$disk = Storage::disk('local');
|
||||
}
|
||||
|
||||
protected static function getDefault(): ?static {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user