Skip to content

Commit

Permalink
spotlessApply (#302)
Browse files Browse the repository at this point in the history
Co-authored-by: GitHub GTNH Actions <>
  • Loading branch information
github-actions[bot] authored Jan 4, 2024
1 parent 4f68b83 commit d2e78a2
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
package com.mitchej123.hodgepodge.mixins.early.minecraft;

import java.util.Random;

import net.minecraft.entity.item.EntityEnderPearl;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.ItemEnderPearl;
import net.minecraft.item.ItemStack;
import net.minecraft.world.World;

import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.Overwrite;
import org.spongepowered.asm.mixin.Shadow;

import java.util.Random;

@Mixin(ItemEnderPearl.class)
public class MixinItemEnderPearl {

Expand All @@ -26,8 +27,7 @@ public ItemStack onItemRightClick(ItemStack itemStackIn, World worldIn, EntityPl
--itemStackIn.stackSize;
worldIn.playSoundAtEntity(player, "random.bow", 0.5F, 0.4F / (itemRand.nextFloat() * 0.4F + 0.8F));

if (!worldIn.isRemote)
{
if (!worldIn.isRemote) {
worldIn.spawnEntityInWorld(new EntityEnderPearl(worldIn, player));
}

Expand Down

0 comments on commit d2e78a2

Please sign in to comment.