mirror of
https://github.com/DRE2N/DungeonsXL.git
synced 2024-11-28 13:36:33 +01:00
Reset Exp when switching Class
This commit is contained in:
parent
545688fbd8
commit
021026febd
@ -298,6 +298,10 @@ public class DPlayer {
|
|||||||
this.player.removePotionEffect(effect.getType());
|
this.player.removePotionEffect(effect.getType());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Reset lvl
|
||||||
|
this.player.setTotalExperience(0);
|
||||||
|
this.player.setLevel(0);
|
||||||
|
|
||||||
/* Set Inventory */
|
/* Set Inventory */
|
||||||
for (ItemStack istack : dclass.items) {
|
for (ItemStack istack : dclass.items) {
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user