rename WritableBook->swapPage() to swapPages()

This commit is contained in:
Dylan K. Taylor 2017-10-23 17:55:01 +01:00
parent 8daa8deae9
commit 3765511317
2 changed files with 2 additions and 2 deletions

View File

@ -2978,7 +2978,7 @@ class Player extends Human implements CommandSender, ChunkLoader, IPlayer{
$modifiedPages[] = $packet->pageNumber;
break;
case BookEditPacket::TYPE_SWAP_PAGES:
$newBook->swapPage($packet->pageNumber, $packet->secondaryPageNumber);
$newBook->swapPages($packet->pageNumber, $packet->secondaryPageNumber);
$modifiedPages = [$packet->pageNumber, $packet->secondaryPageNumber];
break;
case BookEditPacket::TYPE_SIGN_BOOK:

View File

@ -156,7 +156,7 @@ class WritableBook extends Item{
*
* @return bool indicating success
*/
public function swapPage(int $pageId1, int $pageId2) : bool{
public function swapPages(int $pageId1, int $pageId2) : bool{
if(!$this->pageExists($pageId1) or !$this->pageExists($pageId2)){
return false;
}