Fix to Lava Crystal
This commit is contained in:
parent
d719b85958
commit
48ef87303a
5 changed files with 61 additions and 11 deletions
|
@ -108,6 +108,12 @@ public class ItemLavaCrystal extends ItemBindableBase
|
|||
if (!player.canPlayerEdit(pos, facing, itemstack))
|
||||
return ActionResultType.FAIL;
|
||||
|
||||
if (context.getWorld().isAirBlock(pos) && context.getWorld().isRemote)
|
||||
{
|
||||
context.getWorld().playSound(player, pos, SoundEvents.ITEM_FIRECHARGE_USE, SoundCategory.BLOCKS, 1.0F, random.nextFloat() * 0.4F + 0.8F);
|
||||
return ActionResultType.SUCCESS;
|
||||
}
|
||||
|
||||
if (context.getWorld().isAirBlock(pos) && NetworkHelper.getSoulNetwork(binding).syphonAndDamage(player, SoulTicket.item(player.getHeldItem(hand), 100)).isSuccess())
|
||||
{
|
||||
context.getWorld().playSound(player, pos, SoundEvents.ITEM_FIRECHARGE_USE, SoundCategory.BLOCKS, 1.0F, random.nextFloat() * 0.4F + 0.8F);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue