More changes
This commit is contained in:
parent
9aaa65feb4
commit
d5ba110323
56 changed files with 1250 additions and 618 deletions
|
@ -382,6 +382,11 @@ public class EnergyItems extends Item implements IBindable
|
|||
world.setItemData(ownerName, data);
|
||||
}
|
||||
|
||||
if(data.currentEssence>=maximum)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
data.currentEssence = Math.min(maximum, data.currentEssence + amount);
|
||||
data.markDirty();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue