Skip to content

Commit

Permalink
feat: now can choose preivous world type by right click
Browse files Browse the repository at this point in the history
  • Loading branch information
kappa-maintainer committed Mar 1, 2024
1 parent 2d935d4 commit 01233dd
Showing 1 changed file with 30 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@
protected void func_73869_a(char p_73869_1_, int p_73869_2_) throws IOException
{
if (this.field_146333_g.func_146206_l() && !this.field_146344_y)
@@ -453,11 +407,10 @@
@@ -453,13 +407,37 @@
this.func_146284_a(this.field_146292_n.get(0));
}

Expand All @@ -193,16 +193,43 @@
- @Override
protected void func_73864_a(int p_73864_1_, int p_73864_2_, int p_73864_3_) throws IOException
{
+ if (this.field_146320_D.func_146116_c(this.field_146297_k, p_73864_1_, p_73864_2_)) {
+ if (p_73864_3_ == 1) {
+ --this.field_146331_K;
+
+ if (this.field_146331_K < 0)
+ {
+ this.field_146331_K = WorldType.field_77139_a.length - 1;
+ }
+
+ while (!this.func_175299_g())
+ {
+ --this.field_146331_K;
+
+ if (this.field_146331_K < 0)
+ {
+ this.field_146331_K = WorldType.field_77139_a.length - 1;
+ }
+ }
+
+ this.field_146334_a = "";
+ this.func_146319_h();
+ this.func_146316_a(this.field_146344_y);
+ }
+ }
+
super.func_73864_a(p_73864_1_, p_73864_2_, p_73864_3_);
@@ -472,7 +425,6 @@

if (this.field_146344_y)
@@ -472,7 +450,6 @@
}
}

- @Override
public void func_73863_a(int p_73863_1_, int p_73863_2_, float p_73863_3_)
{
this.func_146276_q_();
@@ -497,22 +449,13 @@
@@ -497,22 +474,13 @@

if (WorldType.field_77139_a[this.field_146331_K].func_151357_h())
{
Expand Down

0 comments on commit 01233dd

Please sign in to comment.