Skip to content

Commit

Permalink
Remove entity from fire when logged
Browse files Browse the repository at this point in the history
  • Loading branch information
matcracker committed Jun 9, 2020
1 parent bdf4f6b commit 6ac40f8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/matcracker/BedcoreProtect/utils/EntityUtils.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,8 @@ public static function getSerializedNbt(Entity $entity): string
{
$entity->saveNBT();
$namedTag = clone $entity->namedtag;
$namedTag->setShort("Fire", 0);

if ($entity instanceof Living) {
$namedTag->setFloat("Health", $entity->getMaxHealth());
}
Expand Down

0 comments on commit 6ac40f8

Please sign in to comment.