Some more minor changes for autocompletion in IDEs

This commit is contained in:
SOFe 2016-10-22 15:01:23 +08:00 committed by Dylan K. Taylor
parent 175dd0efa6
commit e1253db37c
2 changed files with 3 additions and 3 deletions

View File

@ -2723,8 +2723,8 @@ class Player extends Human implements CommandSender, InventoryHolder, ChunkLoade
foreach($ingredients as $ingredient){ foreach($ingredients as $ingredient){
$slot = -1; $slot = -1;
foreach($this->inventory->getContents() as $index => $i){ foreach($this->inventory->getContents() as $index => $item){
if($ingredient->getId() !== 0 and $ingredient->deepEquals($i, $ingredient->getDamage() !== null) and ($i->getCount() - $used[$index]) >= 1){ if($ingredient->getId() !== 0 and $ingredient->deepEquals($item, $ingredient->getDamage() !== null) and ($item->getCount() - $used[$index]) >= 1){
$slot = $index; $slot = $index;
$used[$index]++; $used[$index]++;
break; break;

View File

@ -39,7 +39,7 @@ class BanListCommand extends VanillaCommand{
if(!$this->testPermission($sender)){ if(!$this->testPermission($sender)){
return true; return true;
} }
$list = $sender->getServer()->getNameBans();
if(isset($args[0])){ if(isset($args[0])){
$args[0] = strtolower($args[0]); $args[0] = strtolower($args[0]);
if($args[0] === "ips"){ if($args[0] === "ips"){