Merge branch 'master' into 1.17
This commit is contained in:
commit
cd6827767a
10 files changed
+43
-39
No files matched your search
@@ -0,0 +1,22 @@
|
||||
package carpet.mixins;
|
||||
|
||||
|
||||
import carpet.CarpetSettings;
|
||||
import net.minecraft.entity.boss.WitherEntity;
|
||||
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(WitherEntity.class)
|
||||
public class WitherEntity_extremeMixin
|
||||
{
|
||||
@Redirect(method = "method_6878", at = @At(value = "INVOKE", target = "Ljava/util/Random;nextFloat()F"))
|
||||
private float nextFloatAmplfied(Random random)
|
||||
{
|
||||
if (CarpetSettings.extremeBehaviours) return random.nextFloat()/100;
|
||||
return random.nextFloat();
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user