mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-12 16:59:44 +00:00
Beacon: fixed crash in PC worlds
This commit is contained in:
parent
dfee8b7fa5
commit
e39d2c4621
@ -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{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user