This commit is contained in:
gnembon committed 2021-04-21 20:12:44 -03:00
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;
@@ -824,7 +824,9 @@ public class CarpetEventServer
private final Set<Identifier> skippedStats = new HashSet<Identifier>(){{
add(Stats.TIME_SINCE_DEATH);
add(Stats.TIME_SINCE_REST);
add(Stats.PLAY_ONE_MINUTE);
//add(Stats.PLAY_ONE_MINUTE);
add(Stats.PLAY_TIME);
add(Stats.TOTAL_WORLD_TIME);
}};
@Override
public void onPlayerStatistic(ServerPlayerEntity player, Stat<?> stat, int amount)