23 lines
622 B
Java
23 lines
622 B
Java
package carpet.mixins;
|
|
|
|
import carpet.utils.RandomTools;
|
|
import net.minecraft.entity.projectile.LlamaSpitEntity;
|
|
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(LlamaSpitEntity.class)
|
|
public class LlamaSpitEntity_extremeMixin
|
|
{
|
|
@Redirect(method = "setVelocity", expect = 3, at = @At(
|
|
value = "INVOKE",
|
|
target = "Ljava/util/Random;nextGaussian()D"
|
|
))
|
|
private double nextGauBian(Random random)
|
|
{
|
|
return RandomTools.nextGauBian(random);
|
|
}
|
|
}
|