mirror of
https://github.com/essentials/Essentials.git
synced 2025-08-16 19:44:15 +02:00
Less chance for C&P error
This commit is contained in:
@@ -22,7 +22,7 @@ public class StateMachine extends WorkListener
|
|||||||
super(plugin, newVersionInfo);
|
super(plugin, newVersionInfo);
|
||||||
this.player = player;
|
this.player = player;
|
||||||
states.clear();
|
states.clear();
|
||||||
states.put(EssentialsChat.class, new EssentialsChat(states));
|
states.add(new EssentialsChat(states));
|
||||||
current = states.get(0);
|
current = states.get(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -9,4 +9,9 @@ public class StateMap extends LinkedHashMap<Class<? extends AbstractState>, Abst
|
|||||||
{
|
{
|
||||||
super();
|
super();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public AbstractState add(AbstractState state)
|
||||||
|
{
|
||||||
|
return put(state.getClass(), state);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user