mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-16 03:51:37 +00:00
Fix entity AABB size mismatch with vanilla (#6841)
This commit is contained in:
@@ -45,7 +45,7 @@ class Squid extends WaterAnimal{
|
|||||||
|
|
||||||
private int $switchDirectionTicker = 0;
|
private int $switchDirectionTicker = 0;
|
||||||
|
|
||||||
protected function getInitialSizeInfo() : EntitySizeInfo{ return new EntitySizeInfo(0.95, 0.95); }
|
protected function getInitialSizeInfo() : EntitySizeInfo{ return new EntitySizeInfo(0.8, 0.8); }
|
||||||
|
|
||||||
public function initEntity(CompoundTag $nbt) : void{
|
public function initEntity(CompoundTag $nbt) : void{
|
||||||
$this->setMaxHealth(10);
|
$this->setMaxHealth(10);
|
||||||
|
@@ -46,7 +46,7 @@ class Villager extends Living implements Ageable{
|
|||||||
private int $profession = self::PROFESSION_FARMER;
|
private int $profession = self::PROFESSION_FARMER;
|
||||||
|
|
||||||
protected function getInitialSizeInfo() : EntitySizeInfo{
|
protected function getInitialSizeInfo() : EntitySizeInfo{
|
||||||
return new EntitySizeInfo(1.8, 0.6); //TODO: eye height??
|
return new EntitySizeInfo(1.9, 0.6); //TODO: eye height??
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getName() : string{
|
public function getName() : string{
|
||||||
|
@@ -33,7 +33,7 @@ class Zombie extends Living{
|
|||||||
public static function getNetworkTypeId() : string{ return EntityIds::ZOMBIE; }
|
public static function getNetworkTypeId() : string{ return EntityIds::ZOMBIE; }
|
||||||
|
|
||||||
protected function getInitialSizeInfo() : EntitySizeInfo{
|
protected function getInitialSizeInfo() : EntitySizeInfo{
|
||||||
return new EntitySizeInfo(1.8, 0.6); //TODO: eye height ??
|
return new EntitySizeInfo(1.9, 0.6); //TODO: eye height ??
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getName() : string{
|
public function getName() : string{
|
||||||
|
Reference in New Issue
Block a user