fixed superpickaxe for gravel & lightstone, preprocessors faster than postprocessors, added methods so same-type changes are visble client-side, fixed fixliquid & setblocks block count

This commit is contained in:
Jacob Scott
2011-07-15 02:00:48 -05:00
parent 75660547d9
commit 66dcc99809
34 changed files with 365 additions and 312 deletions

View File

@ -187,7 +187,7 @@ public class GeneralCommands {
for (String alias : type.getAliases()) {
if (alias.contains(query)) {
player.print("#" + type.getID() + " (" + type.getName() + ")");
found++;
++found;
break;
}
}

View File

@ -44,7 +44,7 @@ public class HistoryCommands {
int times = Math.max(1, args.getInteger(0, 1));
for (int i = 0; i < times; i++) {
for (int i = 0; i < times; ++i) {
EditSession undone = session.undo(session.getBlockBag(player));
if (undone != null) {
player.print("Undo successful.");
@ -70,7 +70,7 @@ public class HistoryCommands {
int times = Math.max(1, args.getInteger(0, 1));
for (int i = 0; i < times; i++) {
for (int i = 0; i < times; ++i) {
EditSession redone = session.redo(session.getBlockBag(player));
if (redone != null) {
player.print("Redo successful.");

View File

@ -65,7 +65,7 @@ public class NavigationCommands {
}
int ascentLevels = 1;
while (player.ascendLevel() && levelsToAscend != ascentLevels) {
ascentLevels++;
++ascentLevels;
}
if (ascentLevels == 0) {
player.printError("No free spot above you found.");
@ -94,7 +94,7 @@ public class NavigationCommands {
}
int descentLevels = 1;
while (player.descendLevel() && levelsToDescend != descentLevels) {
descentLevels++;
++descentLevels;
}
if (descentLevels == 0) {
player.printError("No free spot above you found.");

View File

@ -63,7 +63,7 @@ public class SnapshotCommands {
List<Snapshot> snapshots = config.snapshotRepo.getSnapshots(true);
if (snapshots.size() > 0) {
for (byte i = 0; i < Math.min(num, snapshots.size()); i++) {
for (byte i = 0; i < Math.min(num, snapshots.size()); ++i) {
player.print((i + 1) + ". " + snapshots.get(i).getName());
}