Fix entity AABB size mismatch with vanilla (#6841)

This commit is contained in:
Wraith
2025-10-13 17:59:52 +01:00
committed by GitHub
parent d241807752
commit ef525a66a3
3 changed files with 3 additions and 3 deletions

View File

@@ -45,7 +45,7 @@ class Squid extends WaterAnimal{
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{
$this->setMaxHealth(10);

View File

@@ -46,7 +46,7 @@ class Villager extends Living implements Ageable{
private int $profession = self::PROFESSION_FARMER;
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{

View File

@@ -33,7 +33,7 @@ class Zombie extends Living{
public static function getNetworkTypeId() : string{ return EntityIds::ZOMBIE; }
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{