Chests are now empty when removed (so they longer drop their items). Profile debugging mode added that prints how long an operation took.

This commit is contained in:
sk89q
2010-11-16 00:15:06 -08:00
parent 6b368a38a2
commit c6033a7e1c
3 changed files with 44 additions and 0 deletions

View File

@ -93,6 +93,11 @@ public class EditSession {
if (y < 0 || y > 127) {
return false;
}
// Clear the chest so that it doesn't drop items
if (ServerInterface.getBlockType(pt) == 54) {
ServerInterface.clearChest(pt);
}
boolean result = ServerInterface.setBlockType(pt, block.getID());
if (block.getID() != 0) {