Skip to content

Commit 2f6dcfc

Browse files
committed
updated mod to work with MC1.15.2
1 parent ad25911 commit 2f6dcfc

File tree

4 files changed

+8
-9
lines changed

4 files changed

+8
-9
lines changed

build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,15 @@ apply plugin: 'net.minecraftforge.gradle'
1313
apply plugin: 'eclipse'
1414
apply plugin: 'maven-publish'
1515

16-
version = '1.2.0-MC1.16.2'
16+
version = '1.2.0-MC1.15.2'
1717
group = 'dev.nero.aimassistance' // http://maven.apache.org/guides/mini/guide-naming-conventions.html
1818
archivesBaseName = 'aimassistance'
1919

2020
sourceCompatibility = targetCompatibility = compileJava.sourceCompatibility = compileJava.targetCompatibility = '1.8' // Need this here so eclipse task generates correctly.
2121

2222
println('Java: ' + System.getProperty('java.version') + ' JVM: ' + System.getProperty('java.vm.version') + '(' + System.getProperty('java.vendor') + ') Arch: ' + System.getProperty('os.arch'))
2323
minecraft {
24-
mappings channel: 'snapshot', version: '20200514-1.16'
24+
mappings channel: 'snapshot', version: '20200514-1.15.1'
2525

2626
runs {
2727
client {
@@ -43,5 +43,5 @@ minecraft {
4343
}
4444

4545
dependencies {
46-
minecraft 'net.minecraftforge:forge:1.16.2-33.0.37'
46+
minecraft 'net.minecraftforge:forge:1.15.2-31.2.36'
4747
}

src/main/java/dev/nero/aimassistance/utils/Wrapper.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
import net.minecraft.client.Minecraft;
66
import net.minecraft.entity.Entity;
77
import net.minecraft.util.math.*;
8-
import net.minecraft.util.math.vector.Vector3d;
98

109
import java.util.List;
1110

@@ -53,7 +52,7 @@ public static BlockRayTraceResult getPointedBlock(float maxRange) {
5352
* @param pitch the pitch of the vector from that source - it's the vector's y (vertical) direction
5453
* @return target.getPos() is instance of BlockPos.Mutable if nothing found, else it's an instance of the thing found.
5554
*/
56-
public static BlockRayTraceResult rayTrace(double range, Vector3d source, float yaw, float pitch) {
55+
public static BlockRayTraceResult rayTrace(double range, Vec3d source, float yaw, float pitch) {
5756
if (Wrapper.MC.player == null) return null;
5857

5958
float f2 = MathHelper.cos(- yaw * ((float) Math.PI / 180F) - (float) Math.PI);
@@ -62,7 +61,7 @@ public static BlockRayTraceResult rayTrace(double range, Vector3d source, float
6261
float f5 = MathHelper.sin(- pitch * ((float) Math.PI / 180F));
6362
float f6 = f3 * f4;
6463
float f7 = f2 * f4;
65-
Vector3d vector3d1 = source.add((double)f6 * range, (double)f5 * range, (double)f7 * range);
64+
Vec3d vector3d1 = source.add((double)f6 * range, (double)f5 * range, (double)f7 * range);
6665

6766
return Wrapper.MC.world.rayTraceBlocks(
6867
new RayTraceContext(

src/main/resources/META-INF/mods.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ license="MIT License"
77
modId="aimassistancemod"
88
version="1.2.0"
99
displayName="Aim Assistance"
10-
updateJSONURL="https://raw.githubusercontent.com/N3ROO/AimAssistanceMod/MC_1.16.2/update.json"
10+
updateJSONURL="https://raw.githubusercontent.com/N3ROO/AimAssistanceMod/MC_1.15.2/update.json"
1111
displayURL="https://github.com/N3ROO/AimAssistanceMod/"
1212
# logoFile="examplemod.png"
1313
# credits="someone"

update.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"homepage": "https://github.com/N3ROO/AimAssistanceMod/releases",
33
"promos": {
4-
"1.16.2-latest": "1.2.0",
5-
"1.16.2-recommended": "1.2.0"
4+
"1.15.2-latest": "1.2.0",
5+
"1.15.2-recommended": "1.2.0"
66
}
77
}

0 commit comments

Comments
 (0)