mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-11-13 03:49:09 +01:00
parent
964219d4dc
commit
f83c4ec60b
1 changed files with 2 additions and 2 deletions
|
@ -59,13 +59,13 @@ public class ItemSolidifiedExperience extends ItemBase{
|
|||
if(!player.isSneaking()){
|
||||
amount = SOLID_XP_AMOUNT;
|
||||
if(!player.capabilities.isCreativeMode){
|
||||
stack = StackUtil.addStackSize(stack, -1);
|
||||
stack.stackSize--;
|
||||
}
|
||||
}
|
||||
else{
|
||||
amount = SOLID_XP_AMOUNT*StackUtil.getStackSize(stack);
|
||||
if(!player.capabilities.isCreativeMode){
|
||||
stack = StackUtil.setStackSize(stack, 0);
|
||||
stack.stackSize = 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue