diff --git a/hwe/func_gamerule.php b/hwe/func_gamerule.php index 30d4d685..07e07a6f 100644 --- a/hwe/func_gamerule.php +++ b/hwe/func_gamerule.php @@ -1158,7 +1158,7 @@ function resetInheritanceUser(int $userID, bool $isRebirth=false){ $inheritStor = KVStorage::getStorage(DB::db(), "inheritance_{$userID}"); $totalPoint = 0; foreach($inheritStor->getAll() as $key=>[$value,]){ - if(key_exists($key, $rebirthDegraded)){ + if($isRebirth && key_exists($key, $rebirthDegraded)){ $value *= $rebirthDegraded[$key]; } $totalPoint += $value;