mirror of
https://github.com/AtlasMediaGroup/TotalFreedomMod.git
synced 2024-12-27 20:27:37 +00:00
Clean up EntryType
This commit is contained in:
parent
5c61ff27b0
commit
7a6cc55640
@ -122,19 +122,19 @@ public class TFM_RollbackManager
|
||||
|
||||
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
|
||||
public String toString()
|
||||
{
|
||||
if (this == BLOCK_PLACE)
|
||||
{
|
||||
return "placed";
|
||||
}
|
||||
else
|
||||
{
|
||||
return "broke";
|
||||
}
|
||||
return this.action;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user