yes
parent
0c2ae24652
commit
7a987835bf
|
@ -365,7 +365,7 @@ public class Minecraft implements Runnable, LevelLoaderListener
|
|||
// }
|
||||
|
||||
if (Keyboard.getEventKey() == Keyboard.KEY_PERIOD) {
|
||||
if (this.paintTexture != 30)
|
||||
if (this.paintTexture != 34) //prevents game from crashing if user goes above the last available block.
|
||||
this.paintTexture += 1;
|
||||
this.paintTextureString = ("block selected:" + this.paintTexture);
|
||||
}
|
||||
|
|
|
@ -51,6 +51,9 @@ public class Tile
|
|||
public static final Tile BlackMud;
|
||||
public static final Tile Glass;
|
||||
public static final Tile DarkGlass;
|
||||
public static final Tile Gold;
|
||||
public static final Tile Diamond;
|
||||
public static final Tile Iron;
|
||||
public int tex;
|
||||
public final int id;
|
||||
protected float xx0;
|
||||
|
@ -95,6 +98,9 @@ public class Tile
|
|||
BlackMud = new DarkMud(29);
|
||||
Glass = new Glass(30);
|
||||
DarkGlass = new GlassDark(31);
|
||||
Gold = new GoldBlock(32);
|
||||
Diamond = new DiamondBlock(33);
|
||||
Iron = new IronBlock(34);
|
||||
}
|
||||
|
||||
protected Tile(final int id) {
|
||||
|
|
Loading…
Reference in New Issue