Sigils should draw LP from the bound network, not the user
(cherry picked from commit 082d2b8
)
This commit is contained in:
parent
852d32f233
commit
c46ed3e648
14 changed files with 14 additions and 18 deletions
|
@ -50,7 +50,7 @@ public class ItemSigilBloodLight extends ItemSigilBase
|
|||
{
|
||||
world.setBlockState(blockPos, ModBlocks.BLOOD_LIGHT.getDefaultState());
|
||||
if (!world.isRemote)
|
||||
NetworkHelper.syphonAndDamage(NetworkHelper.getSoulNetwork(player), player, getLpUsed());
|
||||
NetworkHelper.getSoulNetwork(getOwnerUUID(stack)).syphonAndDamage(player, getLpUsed());
|
||||
resetCooldown(stack);
|
||||
player.swingArm(hand);
|
||||
return super.onItemRightClick(world, player, hand);
|
||||
|
@ -60,7 +60,7 @@ public class ItemSigilBloodLight extends ItemSigilBase
|
|||
if (!world.isRemote)
|
||||
{
|
||||
world.spawnEntity(new EntityBloodLight(world, player));
|
||||
NetworkHelper.syphonAndDamage(NetworkHelper.getSoulNetwork(player), player, getLpUsed());
|
||||
NetworkHelper.getSoulNetwork(getOwnerUUID(stack)).syphonAndDamage(player, getLpUsed());
|
||||
}
|
||||
resetCooldown(stack);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue