22 lines
620 B
Java
22 lines
620 B
Java
package carpet.mixins;
|
|
|
|
import carpet.utils.RandomTools;
|
|
import org.spongepowered.asm.mixin.Mixin;
|
|
import org.spongepowered.asm.mixin.injection.At;
|
|
import org.spongepowered.asm.mixin.injection.Redirect;
|
|
|
|
import java.util.Random;
|
|
|
|
@Mixin(targets = "net.minecraft.entity.mob.BlazeEntity$ShootFireballGoal")
|
|
public class BlazeEntityShootFireballGoal_extremeMixin
|
|
{
|
|
@Redirect(method = "tick()V", expect = 2, at = @At(
|
|
value = "INVOKE",
|
|
target = "Ljava/util/Random;nextGaussian()D"
|
|
))
|
|
private double nextGauBian(Random random)
|
|
{
|
|
return RandomTools.nextGauBian(random);
|
|
}
|
|
}
|