Skip to content
This repository has been archived by the owner on Mar 10, 2021. It is now read-only.

Commit

Permalink
Forgot to reset some stuff on lvlup
Browse files Browse the repository at this point in the history
  • Loading branch information
bonii-xx committed Mar 1, 2015
1 parent df0e4db commit dcbc588
Showing 1 changed file with 2 additions and 0 deletions.
Expand Up @@ -135,13 +135,15 @@ public static void updateXP(ItemStack tool, EntityPlayer player, long toolXP, lo
// rubber chicken yaaaaay
tool.func_150996_a(IguanaToolLeveling.rubberChicken);
tags.setLong(TAG_EXP, 0L);
tags.setInteger("CheatyXP", 0);

if(player != null && player.worldObj.isRemote) {
for(int i = 0; i < 1337; i++) {
player.worldObj.spawnEntityInWorld(new EntityXPOrb(player.worldObj, player.posX, player.posY, player.posZ, 1));
}
}


return;
}

Expand Down

0 comments on commit dcbc588

Please sign in to comment.