Skip to content

Commit

Permalink
Fix the bug that slime and magma cube aren't considered as hostile en…
Browse files Browse the repository at this point in the history
…tities

close #203
  • Loading branch information
boholder committed Feb 7, 2024
1 parent 3d8b668 commit 6f79940
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
import net.minecraft.entity.ItemEntity;
import net.minecraft.entity.mob.HostileEntity;
import net.minecraft.entity.mob.MobEntity;
import net.minecraft.entity.mob.Monster;
import net.minecraft.entity.mob.WaterCreatureEntity;
import net.minecraft.entity.passive.PassiveEntity;
import net.minecraft.entity.player.PlayerEntity;
Expand Down Expand Up @@ -123,7 +124,7 @@ public void update(boolean onMarking, Entity markedEntity) {
if (i instanceof PassiveEntity) {
passiveEntity.put(distance, i);
this.playSoundAtBlockPos(blockPos, SoundEvents.BLOCK_NOTE_BLOCK_BELL.value(), 0f);
} else if (i instanceof HostileEntity) {
} else if (i instanceof Monster) {
hostileEntity.put(distance, i);
this.playSoundAtBlockPos(blockPos, SoundEvents.BLOCK_NOTE_BLOCK_BELL.value(), 2f);
} else if (i instanceof WaterCreatureEntity) {
Expand Down
4 changes: 2 additions & 2 deletions doc/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ Release v1.5.3 (2024-02)
### Feature Changes

* Now the Read Crosshair feature will only play the position sound cue once when player looks at different sides of same block.
* When locking on an entity, POI Locking feature will always try to target at a valid position that you can interact with, instead of previous "always targeting on head" behavior.
* When locking on an entity, POI Locking feature will always try to target at a valid position that you can interact with, thus you can attack a monster even it expose small part of its body to you.
* Now POI Locking feature will never let you make eye contact with an [Enderman](https://minecraft.wiki/w/Enderman).
* Boats, mine carts, and ancient debris blocks can be scanned and locked with POI feature now. [#157](https://github.com/khanshoaib3/minecraft_access/issues/157) [#215](https://github.com/khanshoaib3/minecraft_access/issues/215)
* Boat, mine cart, slime, magma cube, and ancient debris can be scanned and locked with POI feature now. [#157](https://github.com/khanshoaib3/minecraft_access/issues/157) [#203](https://github.com/khanshoaib3/minecraft_access/issues/203) [#215](https://github.com/khanshoaib3/minecraft_access/issues/215)

### Bug Fixes

Expand Down

0 comments on commit 6f79940

Please sign in to comment.