1
0
mirror of https://github.com/essentials/Essentials.git synced 2025-08-13 18:14:38 +02:00

Less chance for C&P error

This commit is contained in:
snowleo
2011-10-23 23:11:47 +02:00
parent 7a7232c832
commit b573516470
2 changed files with 6 additions and 1 deletions

View File

@@ -22,7 +22,7 @@ public class StateMachine extends WorkListener
super(plugin, newVersionInfo);
this.player = player;
states.clear();
states.put(EssentialsChat.class, new EssentialsChat(states));
states.add(new EssentialsChat(states));
current = states.get(0);
}

View File

@@ -9,4 +9,9 @@ public class StateMap extends LinkedHashMap<Class<? extends AbstractState>, Abst
{
super();
}
public AbstractState add(AbstractState state)
{
return put(state.getClass(), state);
}
}