bugfixes
This commit is contained in:
@ -40,7 +40,7 @@ class Player {
|
||||
public $uploadRate = -1;
|
||||
public $skins = null;
|
||||
public $daysSinceZoneInscription = -1;
|
||||
public $cache = array();
|
||||
private $cache = array();
|
||||
|
||||
//Flags details
|
||||
public $forcedSpectatorState = 0;
|
||||
@ -271,6 +271,17 @@ class Player {
|
||||
$this->cache[$className . $cacheName] = $data;
|
||||
}
|
||||
|
||||
/**
|
||||
* Destroys a Cache
|
||||
*
|
||||
* @param $object
|
||||
* @param $cacheName
|
||||
*/
|
||||
public function destroyCache($object, $cacheName) {
|
||||
$className = $this->getClassName($object);
|
||||
unset($this->cache[$className . $cacheName]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Clear the Player's Temporary Data
|
||||
*/
|
||||
|
Reference in New Issue
Block a user