Cleanup the SoulNetwork a bit.
Should work now?
This commit is contained in:
parent
352c6b9e5f
commit
e0b073b8b7
7 changed files with 130 additions and 69 deletions
|
@ -24,9 +24,9 @@ public class ItemSigilDivination extends ItemSigilBase implements ISigil, IAltar
|
|||
public ItemStack onItemRightClick(ItemStack stack, World world, EntityPlayer player) {
|
||||
super.onItemRightClick(stack, world, player);
|
||||
|
||||
if (!world.isRemote && syphonBatteries(stack, player, getEnergyUsed())) {
|
||||
if (!world.isRemote) {
|
||||
MovingObjectPosition position = getMovingObjectPositionFromPlayer(world, player, false);
|
||||
int currentEssence = NetworkHelper.getCurrentEssence(BindableHelper.getOwnerName(stack));
|
||||
int currentEssence = NetworkHelper.getSoulNetwork(BindableHelper.getOwnerName(stack), world).getCurrentEssence();
|
||||
|
||||
if (position == null) {
|
||||
ChatUtil.sendNoSpam(player, new ChatComponentText(TextHelper.localize(tooltipBase + "currentEssence", currentEssence)));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue