increased mining trust
This commit is contained in:
1 parent
623ec21b93
commit
753ae13bb9
2 files changed
+8
-9
No files matched your search
@@ -12,6 +12,8 @@ import net.minecraft.world.BlockView;
|
|||||||
import org.spongepowered.asm.mixin.Mixin;
|
import org.spongepowered.asm.mixin.Mixin;
|
||||||
import org.spongepowered.asm.mixin.Shadow;
|
import org.spongepowered.asm.mixin.Shadow;
|
||||||
import org.spongepowered.asm.mixin.injection.At;
|
import org.spongepowered.asm.mixin.injection.At;
|
||||||
|
import org.spongepowered.asm.mixin.injection.Constant;
|
||||||
|
import org.spongepowered.asm.mixin.injection.ModifyConstant;
|
||||||
import org.spongepowered.asm.mixin.injection.Redirect;
|
import org.spongepowered.asm.mixin.injection.Redirect;
|
||||||
|
|
||||||
//needs tests, WIP
|
//needs tests, WIP
|
||||||
@@ -43,18 +45,11 @@ public class ServerPlayerInteractionManager_ghostBlocksMixin
|
|||||||
return progress;
|
return progress;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
@ModifyConstant(method = "method_14263",
|
@ModifyConstant(method = "method_14263",
|
||||||
constant = @Constant(doubleValue = 36D))
|
constant = @Constant(doubleValue = 36D))
|
||||||
private double addDistance(double original) {
|
private double addDistance(double original) {
|
||||||
if (CarpetSettings.miningGhostBlockFix)
|
if (CarpetSettings.miningGhostBlockFix)
|
||||||
return 1024D;
|
return 1024D; // blocks 32 distance
|
||||||
return original;
|
return original;
|
||||||
}
|
}
|
||||||
@Inject(method = "method_14263", at = @At("HEAD"))
|
|
||||||
private void logAction(BlockPos blockPos_1, PlayerActionC2SPacket.Action playerActionC2SPacket$Action_1, Direction direction_1, int int_1, CallbackInfo ci)
|
|
||||||
{
|
|
||||||
CarpetSettings.LOG.error("Got action: "+playerActionC2SPacket$Action_1+"("+int_1+")");
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
}
|
}
|
||||||
@@ -229,7 +229,11 @@ public class CarpetSettings
|
|||||||
@Rule(desc = "smooth client animations with low tps settings", extra = "works only in SP, and will slow down players", category = CREATIVE)
|
@Rule(desc = "smooth client animations with low tps settings", extra = "works only in SP, and will slow down players", category = CREATIVE)
|
||||||
public static boolean smoothClientAnimations;
|
public static boolean smoothClientAnimations;
|
||||||
|
|
||||||
@Rule(desc="Fixes mining ghost blocks by allowing ANY mining speed from clients", category = SURVIVAL)
|
@Rule(
|
||||||
|
desc="Fixes mining ghost blocks by trusting clients with block breaking",
|
||||||
|
extra="Increases player allowed mining distance to 32 blocks",
|
||||||
|
category = SURVIVAL
|
||||||
|
)
|
||||||
public static boolean miningGhostBlockFix;
|
public static boolean miningGhostBlockFix;
|
||||||
|
|
||||||
private static class PushLimitLimits extends Validator<Integer> {
|
private static class PushLimitLimits extends Validator<Integer> {
|
||||||
|
|||||||
Reference in new issue
Block a user