21w16a
This commit is contained in:
1 parent
cd6827767a
commit
fc87053978
5 files changed
+11
-5
No files matched your search
@@ -10,6 +10,7 @@ import org.spongepowered.asm.mixin.injection.Redirect;
|
||||
@Mixin(BiomeArray.class)
|
||||
public class BiomeArray_cleanLogsMixin
|
||||
{
|
||||
@SuppressWarnings("UnresolvedMixinReference")
|
||||
@Redirect(method = "<init>(Lnet/minecraft/util/collection/IndexedIterable;Lnet/minecraft/world/HeightLimitView;[I)V", at = @At(
|
||||
value = "INVOKE",
|
||||
target = "Lorg/apache/logging/log4j/Logger;warn(Ljava/lang/String;Ljava/lang/Object;)V")
|
||||
|
||||
@@ -10,7 +10,7 @@ import org.spongepowered.asm.mixin.injection.Redirect;
|
||||
@Mixin(TrapezoidHeightProvider.class)
|
||||
public class TrapezoidHeightProvider_cleanLogsMixin {
|
||||
|
||||
//@SuppressWarnings("UnresolvedMixinReference")
|
||||
@SuppressWarnings("UnresolvedMixinReference")
|
||||
@Redirect(method = "get",
|
||||
at = @At(value = "INVOKE", target = "Lorg/apache/logging/log4j/Logger;warn(Ljava/lang/String;Ljava/lang/Object;)V")
|
||||
)
|
||||
|
||||
@@ -12,7 +12,10 @@ import java.util.Random;
|
||||
@Mixin(WitherEntity.class)
|
||||
public class WitherEntity_extremeMixin
|
||||
{
|
||||
@Redirect(method = "method_6878", at = @At(value = "INVOKE", target = "Ljava/util/Random;nextFloat()F"))
|
||||
@Redirect(method = "shootSkullAt(ILnet/minecraft/entity/LivingEntity;)V", at = @At(
|
||||
value = "INVOKE",
|
||||
target = "Ljava/util/Random;nextFloat()F")
|
||||
)
|
||||
private float nextFloatAmplfied(Random random)
|
||||
{
|
||||
if (CarpetSettings.extremeBehaviours) return random.nextFloat()/100;
|
||||
|
||||
Reference in new issue
Block a user