Better Ground Telegraph Handling

This commit is contained in:
Kam committed 2026-02-24 00:31:20 -05:00
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) {