mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2024-08-06 11:14:08 +00:00
Less chance for C&P error
This commit is contained in:
parent
8854b3f565
commit
ff92e0bf6f
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
@ -9,4 +9,9 @@ public class StateMap extends LinkedHashMap<Class<? extends AbstractState>, Abst
|
|||
{
|
||||
super();
|
||||
}
|
||||
|
||||
public AbstractState add(AbstractState state)
|
||||
{
|
||||
return put(state.getClass(), state);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue