mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-29 14:49:59 +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
|
* @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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user