mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-22 16:39:49 +00:00
Better Ground Telegraph Handling
This commit is contained in:
1 parent
abc34b3f6f
commit
7d4157774a
7 files changed
+48
-14
No files matched your search
@@ -96,7 +96,8 @@ public class TelegraphInstance {
|
||||
this.x = entity.posX;
|
||||
this.z = entity.posZ;
|
||||
// Find ground level below the entity for proper telegraph placement
|
||||
this.y = Ability.findGroundLevel(world, entity.posX, entity.posY, entity.posZ);
|
||||
int searchRange = (telegraph != null) ? telegraph.getGroundSearchRange() : 3;
|
||||
this.y = Ability.findGroundLevel(world, entity.posX, entity.posY, entity.posZ, searchRange);
|
||||
|
||||
// Track followed entity's yaw for directional telegraphs (player casters)
|
||||
if (trackFollowedEntityYaw && targetEntityId < 0) {
|
||||
|
||||
Reference in new issue
Block a user