mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-16 19:59:11 +00:00
Beacon: fixed crash in PC worlds
This commit is contained in:
@@ -41,8 +41,8 @@ final class Beacon extends Spawnable{
|
|||||||
|
|
||||||
public function readSaveData(CompoundTag $nbt) : void{
|
public function readSaveData(CompoundTag $nbt) : void{
|
||||||
//TODO: PC uses Primary and Secondary (capitalized first letter), we don't read them here because the IDs would be different
|
//TODO: PC uses Primary and Secondary (capitalized first letter), we don't read them here because the IDs would be different
|
||||||
$this->primaryEffect = $nbt->getInt(self::TAG_PRIMARY);
|
$this->primaryEffect = $nbt->getInt(self::TAG_PRIMARY, 0);
|
||||||
$this->secondaryEffect = $nbt->getInt(self::TAG_SECONDARY);
|
$this->secondaryEffect = $nbt->getInt(self::TAG_SECONDARY, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function writeSaveData(CompoundTag $nbt) : void{
|
protected function writeSaveData(CompoundTag $nbt) : void{
|
||||||
|
Reference in New Issue
Block a user