forked from mirrors/NBTExplorer
fixes to printed usage
This commit is contained in:
parent
0ef9409f99
commit
9e87d81e58
2 changed files with 6 additions and 6 deletions
|
@ -39,12 +39,12 @@ const char * basename (const char *path) {
|
|||
}
|
||||
|
||||
void print_usage (const char *name) {
|
||||
fprintf(stderr, "Usage: %s <world dir> <tool> <ore_id> [options]\n", basename(name));
|
||||
fprintf(stderr, "Usage: %s <tool> <world dir> [options]\n", basename(name));
|
||||
fprintf(stderr, "Available tools:\n");
|
||||
fprintf(stderr, " oregen : Generate new ore deposits\n");
|
||||
fprintf(stderr, " replace : Replace one block type with another\n\n");
|
||||
fprintf(stderr, "Usage and options for 'oregen':\n");
|
||||
fprintf(stderr, " %s <world_dir> oregen <ore_id> [options]\n\n", basename(name));
|
||||
fprintf(stderr, " %s oregen <world_dir> <ore_id> [options]\n\n", basename(name));
|
||||
fprintf(stderr, " Ore IDs:\n");
|
||||
fprintf(stderr, " 16 = Coal, 15 = Iron, 14 = Gold, 73 = Redstone, 56 = Diamond, 21 = Lapis\n");
|
||||
fprintf(stderr, " Options:\n");
|
||||
|
@ -58,10 +58,10 @@ void print_usage (const char *name) {
|
|||
fprintf(stderr, " -oa : Take precedence over all existing blocks (including air)\n");
|
||||
fprintf(stderr, " -oi <id> : Take precedence over a specific block type\n\n");
|
||||
fprintf(stderr, "Usage and options for 'replace':\n");
|
||||
fprintf(stderr, " %s <world_dir> replace <block_id_1> <block_id_2> [options]\n\n", basename(name));
|
||||
fprintf(stderr, " %s replace <world_dir> <block_id_1> <block_id_2> [options]\n\n", basename(name));
|
||||
fprintf(stderr, " Options:\n");
|
||||
fprintf(stderr, " -mn <num> : Minimum depth ore is generated (0-127)\n");
|
||||
fprintf(stderr, " -mx <num> : Maximum depth ore is generated (0-127)\n");
|
||||
fprintf(stderr, " -mn <num> : Minimum depth blocks are replaced (0-127)\n");
|
||||
fprintf(stderr, " -mx <num> : Maximum height blocks are replaced (0-127)\n");
|
||||
fprintf(stderr, " -p <num> : Probability that an individual block is replaced (0.0-1.0)\n");
|
||||
fprintf(stderr, "Common Options:\n");
|
||||
/*fprintf(stderr, " -cb <time> : Only update chunks created before time (as unix timestamp)\n");
|
||||
|
|
|
@ -56,7 +56,7 @@ int pf_replace (nbt_file * nf, struct options * opt, void * pf_opt) {
|
|||
if (opt->set & OPT_VV) {
|
||||
fprintf(stderr, "Replaced block at %d,%d,%d\n", x, y, z);
|
||||
}
|
||||
|
||||
|
||||
if (rep_opt->set & OPT_DATA) {
|
||||
if (index % 2 == 0) {
|
||||
dat->content[index / 2] = (dat->content[index / 2] & 0xF0) | rep_opt->data;
|
||||
|
|
Loading…
Reference in a new issue