mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-15 02:09:42 +00:00
Fixed a mistake in spaced command handling
Nothing drastic, just a self-defeating line of code.
This commit is contained in:
parent
47f7af6739
commit
c040579e09
@ -188,7 +188,7 @@ class SimpleCommandMap implements CommandMap{
|
||||
* @return Command|null
|
||||
*/
|
||||
public function matchCommand(string &$commandName, array &$args){
|
||||
$count = max(count($args), 255);
|
||||
$count = min(count($args), 255);
|
||||
|
||||
for($i = 0; $i < $count; ++$i){
|
||||
$commandName .= array_shift($args);
|
||||
|
Loading…
x
Reference in New Issue
Block a user