Skip to content

Commit

Permalink
updating mob id code - thanks to DuoIncure
Browse files Browse the repository at this point in the history
  • Loading branch information
tgwaste committed Jul 1, 2023
1 parent cd6cf97 commit af941b1
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion plugin.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: Mobs
version: 2.0.0
version: 2.0.1
main: tgwaste\Mobs\Main
api: 5.0.0
author: tgwaste
Expand Down
2 changes: 1 addition & 1 deletion src/tgwaste/Mobs/Entities/Husk.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@
use pocketmine\network\mcpe\protocol\types\entity\EntityIds;

class Husk extends MobsEntity {
const TYPE_ID = EntityIds::HORSE;
const TYPE_ID = EntityIds::HUSK;
const HEIGHT = 1.95;
}
1 change: 0 additions & 1 deletion src/tgwaste/Mobs/Entities/MobsEntity.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ public static function getNetworkTypeId() : string {

public function initEntity(CompoundTag $nbt) : void {
$this->setCanClimb(true);
#$this->setImmobile(false);
$this->setNoClientPredictions(false);
$this->setHealth(20);
$this->setMaxHealth(20);
Expand Down

0 comments on commit af941b1

Please sign in to comment.