mirror of
https://github.com/AtlasMediaGroup/TotalFreedomMod.git
synced 2024-11-27 01:05:38 +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
|
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";
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user