cleaning up fixed 1.15 features
This commit is contained in:
1 parent
511919ae1b
commit
56ea9ac961
4 files changed
+23
-20
No files matched your search
@@ -26,7 +26,7 @@ import org.spongepowered.asm.mixin.injection.Redirect;
|
||||
@Mixin(ClientPlayerInteractionManager.class)
|
||||
public abstract class ClientPlayerInteractionManager_ghostBlocksMixin
|
||||
{
|
||||
|
||||
/*
|
||||
@Shadow @Final private MinecraftClient client;
|
||||
|
||||
@Redirect(method = "breakBlock", at = @At(
|
||||
@@ -52,5 +52,5 @@ public abstract class ClientPlayerInteractionManager_ghostBlocksMixin
|
||||
new BlockHitResult(new Vec3d(blockPos_1), Direction.DOWN, blockPos_1, false)
|
||||
));
|
||||
}
|
||||
}
|
||||
}*/
|
||||
}
|
||||
@@ -17,12 +17,12 @@ public abstract class MobEntity_leashMixin
|
||||
|
||||
@Shadow /*@Nullable*/ private CompoundTag leashTag;
|
||||
|
||||
@Inject(method = "writeCustomDataToTag", at = @At("TAIL"))
|
||||
/*@Inject(method = "writeCustomDataToTag", at = @At("TAIL")) // added in 1.15
|
||||
private void addLeashData(CompoundTag compoundTag_1, CallbackInfo ci)
|
||||
{
|
||||
if (holdingEntity == null && CarpetSettings.leadFix && leashTag != null)
|
||||
{
|
||||
compoundTag_1.put("Leash", leashTag);
|
||||
}
|
||||
}
|
||||
}*/
|
||||
}
|
||||
@@ -49,7 +49,7 @@ public class ServerPlayerInteractionManager_ghostBlocksMixin
|
||||
@ModifyConstant(method = "processBlockBreakingAction",
|
||||
constant = @Constant(doubleValue = 36D))
|
||||
private double addDistance(double original) {
|
||||
if (CarpetSettings.miningGhostBlockFix)
|
||||
if (CarpetSettings.antiCheatDisabled)
|
||||
return 1024D; // blocks 32 distance
|
||||
return original;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user