mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-30 23:29:54 +00:00
RuntimeBlockMapping: fixed palette cache never being initialized
I must have been very tired when I wrote this code
This commit is contained in:
parent
333ed8ed2f
commit
a686840e5e
@ -161,6 +161,6 @@ final class RuntimeBlockMapping{
|
|||||||
* @phpstan-return CacheableNbt<\pocketmine\nbt\tag\ListTag>
|
* @phpstan-return CacheableNbt<\pocketmine\nbt\tag\ListTag>
|
||||||
*/
|
*/
|
||||||
public function getStartGamePaletteCache() : CacheableNbt{
|
public function getStartGamePaletteCache() : CacheableNbt{
|
||||||
return $this->startGamePaletteCache ?? new CacheableNbt(new ListTag($this->bedrockKnownStates));
|
return $this->startGamePaletteCache ?? ($this->startGamePaletteCache = new CacheableNbt(new ListTag($this->bedrockKnownStates)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user