mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 03:59:43 +00:00
entity damage by blocks was a bit rewritten, fixed packet spam by burning zombies/entities, fire tweaks
This commit is contained in:
parent
7ebb5a4a63
commit
f078e83528
6 changed files with 87 additions and 93 deletions
|
|
@ -31,8 +31,11 @@ class Skeleton extends Monster{
|
|||
}
|
||||
}
|
||||
if($block === AIR){
|
||||
$oldFire = $this->fire;
|
||||
$this->fire = 160; //Value from 0.8.1
|
||||
$this->updateMetadata();
|
||||
if(($oldFire > 0 && $this->fire <= 0) || ($oldFire <= 0 && $this->fire > 0)){
|
||||
$this->updateMetadata(); //TODO rewrite metadata
|
||||
}
|
||||
return true;
|
||||
}else{
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue