Skip to content

Commit

Permalink
Fix bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
ThisTestUser committed Oct 19, 2018
1 parent 64f97c1 commit ae3337b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ apply plugin: 'net.minecraftforge.gradle.forge'
//Only edit below this line, the above code adds and enables the necessary things for Forge to be setup.


version = "1.0"
version = "1.2"
group = "com.thistestuser.farlands" // http://maven.apache.org/guides/mini/guide-naming-conventions.html
archivesBaseName = "farlands"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,11 @@ public byte[] patchClassNetHandler(String name, byte[] classBytes, boolean obfus
&& ((LdcInsnNode)ain).cst instanceof Double && (Double)((LdcInsnNode)ain).cst == 3.2E7D)
((LdcInsnNode)ain).cst = Double.MAX_VALUE;
else if(ain.getOpcode() == Opcodes.LDC
&& ((LdcInsnNode)ain).cst instanceof Double && (Double)((LdcInsnNode)ain).cst == 3.0E7D)
((LdcInsnNode)ain).cst = Double.MAX_VALUE;
&& ((LdcInsnNode)ain).cst instanceof Double && (Double)((LdcInsnNode)ain).cst == 3.0E7D)
((LdcInsnNode)ain).cst = 4294967294D;
else if(ain.getOpcode() == Opcodes.LDC
&& ((LdcInsnNode)ain).cst instanceof Double && (Double)((LdcInsnNode)ain).cst == -3.0E7D)
((LdcInsnNode)ain).cst = -4294967294D;

ClassWriter classWriter = new ClassWriter(ClassWriter.COMPUTE_MAXS);
classNode.accept(classWriter);
Expand Down

0 comments on commit ae3337b

Please sign in to comment.