fix debug mode clutter
This commit is contained in:
parent
b801a47df6
commit
681bb4dc4e
3 changed files with 68 additions and 55 deletions
|
@ -2578,6 +2578,7 @@ public class Client implements IThreadListener {
|
|||
Client.this.open.init();
|
||||
}
|
||||
});
|
||||
if(Util.DEVMODE)
|
||||
this.registerDebug(Keysym.L, "Maximale Helligkeit umschalten", new DebugRunner() {
|
||||
public void execute(Keysym key) {
|
||||
Client.this.logFeed("Maximale Helligkeit: %s", (Client.this.setGamma ^= true) ? "an" : "aus");
|
||||
|
@ -2594,6 +2595,7 @@ public class Client implements IThreadListener {
|
|||
Client.this.logFeed("JVM GC ausgeführt: %d MB freigegeben", (int)(mem / 1024L / 1024L));
|
||||
}
|
||||
});
|
||||
if(Util.DEVMODE)
|
||||
this.registerDebug(Keysym.B, "Hitbox-Overlay umschalten", new DebugRunner() {
|
||||
public void execute(Keysym key) {
|
||||
Client.this.getRenderManager().setDebugBoundingBox(!Client.this.getRenderManager().isDebugBoundingBox());
|
||||
|
@ -2605,6 +2607,7 @@ public class Client implements IThreadListener {
|
|||
Client.this.logFeed("Debug-Kamera 3. Person: %s", (Client.this.debugCamEnable ^= true) ? "an" : "aus");
|
||||
}
|
||||
});
|
||||
if(Util.DEVMODE)
|
||||
this.registerDebug(Keysym.X, "Röntgenblick umschalten", new DebugRunner() {
|
||||
public void execute(Keysym key) {
|
||||
Client.this.xrayActive ^= true;
|
||||
|
@ -2612,11 +2615,13 @@ public class Client implements IThreadListener {
|
|||
Client.this.logFeed("Röntgenblick: %s", Client.this.xrayActive ? "an" : "aus");
|
||||
}
|
||||
});
|
||||
if(Util.DEVMODE)
|
||||
this.registerDebug(Keysym.O, "Objekt-Overlay umschalten", new DebugRunner() {
|
||||
public void execute(Keysym key) {
|
||||
Client.this.logFeed("Objekt-Umrahmung: %s", (Client.this.renderOutlines ^= true) ? "an" : "aus");
|
||||
}
|
||||
});
|
||||
if(Util.DEVMODE)
|
||||
this.registerDebug(Keysym.I, "Block-Objekt-Overlay umschalten", new DebugRunner() {
|
||||
public void execute(Keysym key) {
|
||||
Client.this.logFeed("Block-Objekte anzeigen: %s", (Client.this.tileOverlay ^= true) ? "an" : "aus");
|
||||
|
@ -2643,6 +2648,7 @@ public class Client implements IThreadListener {
|
|||
Client.this.logFeed("Sounds wurden neu geladen");
|
||||
}
|
||||
});
|
||||
if(Util.DEVMODE)
|
||||
this.registerDebug(Keysym.W, "Server-Tick-Limit umschalten (Welt beschleunigen / Warpmodus)", new DebugRunner() {
|
||||
public void execute(Keysym key) {
|
||||
Client.this.performAction(Action.WARP_MODE);
|
||||
|
@ -2658,11 +2664,13 @@ public class Client implements IThreadListener {
|
|||
Client.this.performAction(Action.HEAL);
|
||||
}
|
||||
});
|
||||
if(Util.DEVMODE)
|
||||
this.registerDebug(Keysym.P, "Server Performance-Anfrage senden", new DebugRunner() {
|
||||
public void execute(Keysym key) {
|
||||
Client.this.performAction(Action.PERF);
|
||||
}
|
||||
});
|
||||
if(Util.DEVMODE)
|
||||
this.registerDebug(Keysym.C, "Debug-Crash auslösen (2x schnell hintereinander)", new DebugRunner() {
|
||||
long lastUsed;
|
||||
|
||||
|
@ -2681,6 +2689,7 @@ public class Client implements IThreadListener {
|
|||
Client.this.soundManager.stopSounds();
|
||||
}
|
||||
});
|
||||
if(Util.DEVMODE)
|
||||
this.registerDebug(Keysym.Q, "Programm sofort beenden und trennen", new DebugRunner() {
|
||||
public void execute(Keysym key) {
|
||||
Client.this.interrupted = true;
|
||||
|
|
|
@ -5,6 +5,7 @@ import java.util.function.Predicate;
|
|||
|
||||
import common.biome.Biome;
|
||||
import common.block.Block;
|
||||
import common.block.natural.BlockFire;
|
||||
import common.collect.Lists;
|
||||
import common.entity.Entity;
|
||||
import common.init.BlockRegistry;
|
||||
|
@ -30,6 +31,9 @@ public class ChunkEmpty extends ChunkClient {
|
|||
|
||||
static {
|
||||
for(Block block : BlockRegistry.blocks()) {
|
||||
if(block instanceof BlockFire)
|
||||
STATES.add(block.getState());
|
||||
else
|
||||
STATES.addAll(block.getValidStates());
|
||||
}
|
||||
XSTRETCH = ExtMath.ceilf(ExtMath.sqrtf((float)STATES.size()));
|
||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 4.8 KiB After Width: | Height: | Size: 4.7 KiB |
Loading…
Add table
Add a link
Reference in a new issue