mirror of
https://github.com/DRE2N/DungeonsXL.git
synced 2024-11-02 17:00:19 +01:00
Set level EXP instead of total exp
This commit is contained in:
parent
cd2ee3421f
commit
86c09f6a72
@ -247,7 +247,7 @@ public class DGamePlayer extends DInstancePlayer {
|
||||
}
|
||||
|
||||
// Reset lvl
|
||||
getPlayer().setTotalExperience(0);
|
||||
getPlayer().setExp(0f);
|
||||
getPlayer().setLevel(0);
|
||||
|
||||
/* Set Inventory */
|
||||
|
@ -75,7 +75,7 @@ public abstract class DInstancePlayer extends DGlobalPlayer {
|
||||
public void clearPlayerData() {
|
||||
player.getInventory().clear();
|
||||
player.getInventory().setArmorContents(null);
|
||||
player.setTotalExperience(0);
|
||||
player.setExp(0f);
|
||||
player.setLevel(0);
|
||||
player.setMaxHealth(20);
|
||||
player.setHealth(20);
|
||||
|
Loading…
Reference in New Issue
Block a user