Skip to content

Commit b64460f

Browse files
committed
increased reach by 0.1
1 parent fee42f6 commit b64460f

File tree

6 files changed

+66
-0
lines changed

6 files changed

+66
-0
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
package simpleclient.mixin.feature.legacypvp;
2+
3+
import net.minecraft.world.entity.Entity;
4+
import org.spongepowered.asm.mixin.Mixin;
5+
import org.spongepowered.asm.mixin.injection.At;
6+
import org.spongepowered.asm.mixin.injection.Inject;
7+
import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable;
8+
import simpleclient.feature.LegacyPvP;
9+
10+
@Mixin(Entity.class)
11+
public class EntityMixin {
12+
@Inject(at = @At("HEAD"), method = "getPickRadius", cancellable = true)
13+
public void getPickRadius(CallbackInfoReturnable<Float> cir) {
14+
if (LegacyPvP.ENABLED) cir.setReturnValue(0.1F);
15+
}
16+
}

simpleclient-1.19.4/src/main/resources/simpleclient.mixins.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,14 @@
1010
"MinecraftMixin",
1111
"TitleScreenMixin",
1212
"feature.fullbright.OptionsMixin",
13+
"feature.legacypvp.EntityMixin",
14+
"feature.legacypvp.GuiMixin",
15+
"feature.legacypvp.HumanoidModelMixin",
16+
"feature.legacypvp.ItemInHandRendererMixin",
17+
"feature.legacypvp.LivingEntityMixin",
18+
"feature.legacypvp.PlayerItemInHandLayerMixin",
19+
"feature.legacypvp.PlayerMixin",
20+
"feature.legacypvp.SwordItemMixin",
1321
"feature.lowfire.ScreenEffectRendererMixin",
1422
"feature.perspective.CameraMixin",
1523
"feature.perspective.MouseMixin",
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
package simpleclient.mixin.feature.legacypvp;
2+
3+
import net.minecraft.world.entity.Entity;
4+
import org.spongepowered.asm.mixin.Mixin;
5+
import org.spongepowered.asm.mixin.injection.At;
6+
import org.spongepowered.asm.mixin.injection.Inject;
7+
import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable;
8+
import simpleclient.feature.LegacyPvP;
9+
10+
@Mixin(Entity.class)
11+
public class EntityMixin {
12+
@Inject(at = @At("HEAD"), method = "getPickRadius", cancellable = true)
13+
public void getPickRadius(CallbackInfoReturnable<Float> cir) {
14+
if (LegacyPvP.ENABLED) cir.setReturnValue(0.1F);
15+
}
16+
}

simpleclient-1.20.1/src/main/resources/simpleclient.mixins.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,13 @@
1212
"MinecraftMixin",
1313
"TitleScreenMixin",
1414
"feature.fullbright.OptionsMixin",
15+
"feature.legacypvp.EntityMixin",
1516
"feature.legacypvp.GuiMixin",
1617
"feature.legacypvp.HumanoidModelMixin",
1718
"feature.legacypvp.ItemInHandRendererMixin",
1819
"feature.legacypvp.LivingEntityMixin",
1920
"feature.legacypvp.PlayerItemInHandLayerMixin",
21+
"feature.legacypvp.PlayerMixin",
2022
"feature.legacypvp.SwordItemMixin",
2123
"feature.lowfire.ScreenEffectRendererMixin",
2224
"feature.perspective.CameraMixin",
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
package simpleclient.mixin.feature.legacypvp;
2+
3+
import net.minecraft.world.entity.Entity;
4+
import org.spongepowered.asm.mixin.Mixin;
5+
import org.spongepowered.asm.mixin.injection.At;
6+
import org.spongepowered.asm.mixin.injection.Inject;
7+
import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable;
8+
import simpleclient.feature.LegacyPvP;
9+
10+
@Mixin(Entity.class)
11+
public class EntityMixin {
12+
@Inject(at = @At("HEAD"), method = "getPickRadius", cancellable = true)
13+
public void getPickRadius(CallbackInfoReturnable<Float> cir) {
14+
if (LegacyPvP.ENABLED) cir.setReturnValue(0.1F);
15+
}
16+
}

simpleclient-1.20/src/main/resources/simpleclient.mixins.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,14 @@
1111
"MinecraftMixin",
1212
"TitleScreenMixin",
1313
"feature.fullbright.OptionsMixin",
14+
"feature.legacypvp.EntityMixin",
15+
"feature.legacypvp.GuiMixin",
16+
"feature.legacypvp.HumanoidModelMixin",
17+
"feature.legacypvp.ItemInHandRendererMixin",
18+
"feature.legacypvp.LivingEntityMixin",
19+
"feature.legacypvp.PlayerItemInHandLayerMixin",
20+
"feature.legacypvp.PlayerMixin",
21+
"feature.legacypvp.SwordItemMixin",
1422
"feature.lowfire.ScreenEffectRendererMixin",
1523
"feature.perspective.CameraMixin",
1624
"feature.perspective.MouseMixin",

0 commit comments

Comments
 (0)