Fixed a mistake in spaced command handling

Nothing drastic, just a self-defeating line of code.
This commit is contained in:
Dylan K. Taylor 2017-03-21 15:11:48 +00:00
parent 47f7af6739
commit c040579e09

View File

@ -188,7 +188,7 @@ class SimpleCommandMap implements CommandMap{
* @return Command|null * @return Command|null
*/ */
public function matchCommand(string &$commandName, array &$args){ public function matchCommand(string &$commandName, array &$args){
$count = max(count($args), 255); $count = min(count($args), 255);
for($i = 0; $i < $count; ++$i){ for($i = 0; $i < $count; ++$i){
$commandName .= array_shift($args); $commandName .= array_shift($args);