From b8581e3cec120f9f01d9db76551755f0eed76e70 Mon Sep 17 00:00:00 2001 From: hide_d Date: Sun, 12 Sep 2021 02:07:29 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EC=9D=80=ED=87=B4=EC=9A=A9=20=EC=9C=A0?= =?UTF-8?q?=EC=82=B0=20=ED=8F=AC=EC=9D=B8=ED=8A=B8=20=EC=BD=94=EB=93=9C?= =?UTF-8?q?=EA=B0=80=20=ED=95=AD=EC=83=81=20=EC=A0=81=EC=9A=A9=EB=90=98?= =?UTF-8?q?=EB=8A=94=20=EB=AC=B8=EC=A0=9C=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/func_gamerule.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;