Skip to content
This repository has been archived by the owner on Nov 17, 2017. It is now read-only.

Commit

Permalink
custom lava/water for beta 1.1_02
Browse files Browse the repository at this point in the history
  • Loading branch information
pclewis committed Dec 22, 2010
1 parent 66169b4 commit fdce8f0
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion newcode/src/bc.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ public class bc extends ae {
WaterAnimation w;

public bc(Minecraft game) {
super(of.C.bg);
super(og.C.bg);
w = new WaterAnimation(game, "lava_still", this.b, this.a);
}

Expand Down
6 changes: 3 additions & 3 deletions newcode/src/fi.java → newcode/src/fj.java
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import net.minecraft.client.Minecraft;

public class fi extends ae {
public class fj extends ae {
WaterAnimation w;

public fi(Minecraft game) {
super(of.C.bg + 1);
public fj(Minecraft game) {
super(og.C.bg + 1);
this.e = 2;
this.w = new WaterAnimation(game, "lava_flowing", this.b, this.a, 3, 6);
}
Expand Down
6 changes: 3 additions & 3 deletions newcode/src/jm.java → newcode/src/jn.java
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import net.minecraft.client.Minecraft;

public class jm extends ae {
public class jn extends ae {
WaterAnimation w;

public jm(Minecraft game) {
super(of.A.bg + 1);
public jn(Minecraft game) {
super(og.A.bg + 1);
this.e = 2;
w = new WaterAnimation(game, "water_flowing", this.b, this.a, 0, 0);
}
Expand Down
6 changes: 3 additions & 3 deletions newcode/src/ot.java → newcode/src/ou.java
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import net.minecraft.client.Minecraft;

public class ot extends ae {
public class ou extends ae {
WaterAnimation w;

public ot(Minecraft game) {
super(of.A.bg);
public ou(Minecraft game) {
super(og.A.bg);
this.w = new WaterAnimation(game, "water_still", this.b, this.a);
}

Expand Down
6 changes: 3 additions & 3 deletions src/MCPatcher.java
Original file line number Diff line number Diff line change
Expand Up @@ -267,8 +267,8 @@ private static void getPatches(ArrayList<PatchSet> patches, ArrayList<String> re
PatchSet waterPatches = new PatchSet(Patches.water);
if (globalParams.getBoolean("useCustomWater")) {
patches.add(new PatchSet("Minecraft", new PatchSet(Patches.customWaterMC)));
replaceFiles.add("jm.class");
replaceFiles.add("ot.class");
replaceFiles.add("jn.class");
replaceFiles.add("ou.class");
} else {
if(!globalParams.getBoolean("useAnimatedWater")) {
waterPatches.setParam("tileSize", "0");
Expand All @@ -282,7 +282,7 @@ private static void getPatches(ArrayList<PatchSet> patches, ArrayList<String> re
if(globalParams.getBoolean("useCustomLava")) {
patches.add(new PatchSet("Minecraft", new PatchSet(Patches.customLavaMC)));
replaceFiles.add("bc.class");
replaceFiles.add("fi.class");
replaceFiles.add("fj.class");
//lavaPatches.setParam("tileSize", "0");
//patches.add(new PatchSet("StillLava", lavaPatches));
//patches.add( new PatchSet(Patches.hideStillLava) );
Expand Down
6 changes: 3 additions & 3 deletions src/Patches.java
Original file line number Diff line number Diff line change
Expand Up @@ -532,15 +532,15 @@ byte[] getToBytes(MethodInfo mi) throws Exception {
public static final PatchSet customWaterMC = new PatchSet(
"Minecraft",
new PatchSpec[] {
new PatchSpec(new PassThisPatch("jm", "<init>", "()V", "(Lnet/minecraft/client/Minecraft;)V")),
new PatchSpec(new PassThisPatch("ot", "<init>", "()V", "(Lnet/minecraft/client/Minecraft;)V")),
new PatchSpec(new PassThisPatch("jn", "<init>", "()V", "(Lnet/minecraft/client/Minecraft;)V")),
new PatchSpec(new PassThisPatch("ou", "<init>", "()V", "(Lnet/minecraft/client/Minecraft;)V")),
}
);

public static final PatchSet customLavaMC = new PatchSet(
"Minecraft",
new PatchSpec[] {
new PatchSpec(new PassThisPatch("fi", "<init>", "()V", "(Lnet/minecraft/client/Minecraft;)V")),
new PatchSpec(new PassThisPatch("fj", "<init>", "()V", "(Lnet/minecraft/client/Minecraft;)V")),
new PatchSpec(new PassThisPatch("bc", "<init>", "()V", "(Lnet/minecraft/client/Minecraft;)V")),
}
);
Expand Down

0 comments on commit fdce8f0

Please sign in to comment.