Skip to content

Commit

Permalink
Fix for Mithion#1218
Browse files Browse the repository at this point in the history
  • Loading branch information
DoomFruit committed Sep 12, 2015
1 parent e9c2cce commit 5840bb7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/am2/items/ItemJournal.java
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public ItemStack onItemRightClick(ItemStack journal, World world, EntityPlayer p

if (player.isSneaking()){
try{
int amt = Math.min((Integer)ReflectionHelper.getPrivateValue(EntityPlayer.class, player, "field_71067_cb", "experienceTotal"), 10);
int amt = Math.min(player.experienceTotal, 10);
if (amt > 0){
EntityUtilities.deductXP(amt, player);
addXPToJournal(journal, amt);
Expand Down

0 comments on commit 5840bb7

Please sign in to comment.