mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-20 16:00:20 +00:00
Fixed uninitialized typed properties
This commit is contained in:
parent
2a24982bc4
commit
b57f0a2b7e
@ -48,8 +48,8 @@ use function intdiv;
|
||||
* results, with no remainder. Any leftovers are expected to be emitted back to the crafting grid.
|
||||
*/
|
||||
class CraftingTransaction extends InventoryTransaction{
|
||||
protected ?CraftingRecipe $recipe;
|
||||
protected ?int $repetitions;
|
||||
protected ?CraftingRecipe $recipe = null;
|
||||
protected ?int $repetitions = null;
|
||||
|
||||
/** @var Item[] */
|
||||
protected array $inputs = [];
|
||||
|
@ -30,7 +30,7 @@ use function error_reporting;
|
||||
trait CommonThreadPartsTrait{
|
||||
/** @var \Threaded|\ClassLoader[]|null */
|
||||
private ?\Threaded $classLoaders = null;
|
||||
protected ?string $composerAutoloaderPath;
|
||||
protected ?string $composerAutoloaderPath = null;
|
||||
|
||||
protected bool $isKilled = false;
|
||||
|
||||
|
@ -28,8 +28,8 @@ use pocketmine\world\format\Chunk;
|
||||
use pocketmine\world\format\SubChunk;
|
||||
|
||||
class SubChunkExplorer{
|
||||
public ?Chunk $currentChunk;
|
||||
public ?SubChunk $currentSubChunk;
|
||||
public ?Chunk $currentChunk = null;
|
||||
public ?SubChunk $currentSubChunk = null;
|
||||
|
||||
protected int $currentX;
|
||||
protected int $currentY;
|
||||
|
Loading…
x
Reference in New Issue
Block a user