Clean up EntryType

This commit is contained in:
Steven Lawson 2013-08-26 19:09:39 -04:00
parent 5c61ff27b0
commit 7a6cc55640

View File

@ -122,19 +122,19 @@ public class TFM_RollbackManager
public enum EntryType public enum EntryType
{ {
BLOCK_PLACE, BLOCK_BREAK; BLOCK_PLACE("placed"),
BLOCK_BREAK("broke");
private final String action;
private EntryType(String action)
{
this.action = action;
}
@Override @Override
public String toString() public String toString()
{ {
if (this == BLOCK_PLACE) return this.action;
{
return "placed";
}
else
{
return "broke";
}
} }
} }