YesCheat/src/main/java/io/gitlab/jfronny/yescheat/mixin/ServerPlayerInteractionMana...

15 lines
546 B
Java

package io.gitlab.jfronny.yescheat.mixin;
import net.minecraft.server.network.ServerPlayerInteractionManager;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.injection.Constant;
import org.spongepowered.asm.mixin.injection.ModifyConstant;
@Mixin(ServerPlayerInteractionManager.class)
public class ServerPlayerInteractionManagerMixin {
@ModifyConstant(method = "processBlockBreakingAction", constant = @Constant(doubleValue = 36D))
private double addDistance(double original) {
return 1024D;
}
}