mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-22 00:33:59 +00:00
Living: remove unnecessary double CompoundTag::getTag() call
This commit is contained in:
parent
316e2654cc
commit
2312511be6
@ -142,7 +142,7 @@ abstract class Living extends Entity{
|
||||
$health = $healFTag->getValue();
|
||||
}elseif(($healthTag = $nbt->getTag("Health")) instanceof ShortTag){
|
||||
$health = $healthTag->getValue(); //Older versions of PocketMine-MP incorrectly saved this as a short instead of a float
|
||||
}elseif(($healthTag = $nbt->getTag("Health")) instanceof FloatTag){
|
||||
}elseif($healthTag instanceof FloatTag){
|
||||
$health = $healthTag->getValue();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user