mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-03 08:39:53 +00:00
Merge branch 'stable'
# Conflicts: # resources/vanilla # src/network/mcpe/protocol/serializer/PacketSerializer.php # src/world/biome/Biome.php # tests/phpstan/configs/l8-baseline.neon
This commit is contained in:
commit
a5315991d5
@ -165,18 +165,15 @@ class TypeConverter{
|
|||||||
if(($damageTag = $compound->getTag(self::DAMAGE_TAG)) instanceof IntTag){
|
if(($damageTag = $compound->getTag(self::DAMAGE_TAG)) instanceof IntTag){
|
||||||
$meta = $damageTag->getValue();
|
$meta = $damageTag->getValue();
|
||||||
$compound->removeTag(self::DAMAGE_TAG);
|
$compound->removeTag(self::DAMAGE_TAG);
|
||||||
if($compound->count() === 0){
|
if(($conflicted = $compound->getTag(self::DAMAGE_TAG_CONFLICT_RESOLUTION)) !== null){
|
||||||
|
$compound->removeTag(self::DAMAGE_TAG_CONFLICT_RESOLUTION);
|
||||||
|
$compound->setTag(self::DAMAGE_TAG, $conflicted);
|
||||||
|
}elseif($compound->count() === 0){
|
||||||
$compound = null;
|
$compound = null;
|
||||||
goto end;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if(($conflicted = $compound->getTag(self::DAMAGE_TAG_CONFLICT_RESOLUTION)) !== null){
|
|
||||||
$compound->removeTag(self::DAMAGE_TAG_CONFLICT_RESOLUTION);
|
|
||||||
$compound->setTag(self::DAMAGE_TAG, $conflicted);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
end:
|
|
||||||
return ItemFactory::getInstance()->get(
|
return ItemFactory::getInstance()->get(
|
||||||
$id,
|
$id,
|
||||||
$meta,
|
$meta,
|
||||||
|
@ -48,6 +48,8 @@ final class BiomeRegistry{
|
|||||||
$this->register(BiomeIds::SWAMP, new SwampBiome());
|
$this->register(BiomeIds::SWAMP, new SwampBiome());
|
||||||
$this->register(BiomeIds::RIVER, new RiverBiome());
|
$this->register(BiomeIds::RIVER, new RiverBiome());
|
||||||
|
|
||||||
|
$this->register(BiomeIds::HELL, new HellBiome());
|
||||||
|
|
||||||
$this->register(BiomeIds::ICE_PLAINS, new IcePlainsBiome());
|
$this->register(BiomeIds::ICE_PLAINS, new IcePlainsBiome());
|
||||||
|
|
||||||
$this->register(BiomeIds::SMALL_MOUNTAINS, new SmallMountainsBiome());
|
$this->register(BiomeIds::SMALL_MOUNTAINS, new SmallMountainsBiome());
|
||||||
|
@ -195,21 +195,6 @@ parameters:
|
|||||||
count: 1
|
count: 1
|
||||||
path: ../../../src/network/mcpe/NetworkSession.php
|
path: ../../../src/network/mcpe/NetworkSession.php
|
||||||
|
|
||||||
-
|
|
||||||
message: "#^Cannot call method getTag\\(\\) on pocketmine\\\\nbt\\\\tag\\\\CompoundTag\\|null\\.$#"
|
|
||||||
count: 1
|
|
||||||
path: ../../../src/network/mcpe/convert/TypeConverter.php
|
|
||||||
|
|
||||||
-
|
|
||||||
message: "#^Cannot call method removeTag\\(\\) on pocketmine\\\\nbt\\\\tag\\\\CompoundTag\\|null\\.$#"
|
|
||||||
count: 1
|
|
||||||
path: ../../../src/network/mcpe/convert/TypeConverter.php
|
|
||||||
|
|
||||||
-
|
|
||||||
message: "#^Cannot call method setTag\\(\\) on pocketmine\\\\nbt\\\\tag\\\\CompoundTag\\|null\\.$#"
|
|
||||||
count: 1
|
|
||||||
path: ../../../src/network/mcpe/convert/TypeConverter.php
|
|
||||||
|
|
||||||
-
|
-
|
||||||
message: "#^Property pocketmine\\\\network\\\\mcpe\\\\protocol\\\\LevelSoundEventPacket\\:\\:\\$position \\(pocketmine\\\\math\\\\Vector3\\) does not accept pocketmine\\\\math\\\\Vector3\\|null\\.$#"
|
message: "#^Property pocketmine\\\\network\\\\mcpe\\\\protocol\\\\LevelSoundEventPacket\\:\\:\\$position \\(pocketmine\\\\math\\\\Vector3\\) does not accept pocketmine\\\\math\\\\Vector3\\|null\\.$#"
|
||||||
count: 1
|
count: 1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user