small fixes
This commit is contained in:
		
				
					committed by
					
						
						Steffen Schröder
					
				
			
			
				
	
			
			
			
						parent
						
							928aabb4d2
						
					
				
				
					commit
					f40b60e065
				
			@@ -90,6 +90,7 @@ class MapList implements ManialinkPageAnswerListener, CallbackListener {
 | 
			
		||||
	public function checkUpdates(array $chatCallback, Player $player) {
 | 
			
		||||
		//Update Mx Infos
 | 
			
		||||
		$this->maniaControl->mapManager->mxManager->fetchManiaExchangeMapInformations();
 | 
			
		||||
 | 
			
		||||
		//Reshow the Maplist
 | 
			
		||||
		$this->showMapList($player);
 | 
			
		||||
	}
 | 
			
		||||
 
 | 
			
		||||
@@ -10,7 +10,6 @@ use ManiaControl\Formatter;
 | 
			
		||||
use ManiaControl\ManiaControl;
 | 
			
		||||
use ManiaControl\ManiaExchange\ManiaExchangeList;
 | 
			
		||||
use ManiaControl\ManiaExchange\ManiaExchangeManager;
 | 
			
		||||
use ManiaControl\ManiaExchange\MXMapInfo;
 | 
			
		||||
use ManiaControl\Players\Player;
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
@@ -524,9 +523,7 @@ class MapManager implements CallbackListener {
 | 
			
		||||
			$title      = strtolower(substr($serverInfo->titleId, 0, 2));
 | 
			
		||||
 | 
			
		||||
			// Check if map exists
 | 
			
		||||
			$mxMapInfos = $this->maniaControl->mapManager->mxManager->getMaplistByMixedUidIdString($mapId);
 | 
			
		||||
			$mapInfo    = $mxMapInfos[0];
 | 
			
		||||
			/** @var MXMapInfo $mapInfo */
 | 
			
		||||
			$mapInfo = $this->maniaControl->mapManager->mxManager->getMap($mapId);
 | 
			
		||||
 | 
			
		||||
			if (!$mapInfo || !isset($mapInfo->uploaded)) {
 | 
			
		||||
				// Invalid id
 | 
			
		||||
@@ -603,7 +600,7 @@ class MapManager implements CallbackListener {
 | 
			
		||||
			$this->updateFullMapList();
 | 
			
		||||
 | 
			
		||||
			//Update Mx MapInfo
 | 
			
		||||
			$this->maniaControl->mapManager->mxManager->updateMapObjectsWithManiaExchangeIds($mxMapInfos);
 | 
			
		||||
			$this->maniaControl->mapManager->mxManager->updateMapObjectsWithManiaExchangeIds(array($mapInfo));
 | 
			
		||||
 | 
			
		||||
			//Update last updated time
 | 
			
		||||
			$map = $this->maps[$mapInfo->uid];
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user