From 25f9572be0ccff440a218ba4e87be9fb36259685 Mon Sep 17 00:00:00 2001 From: AlexCube Date: Tue, 13 Oct 2026 17:51:47 +0300 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=B2=D0=B5=D1=80=D0=B8=20=D0=BE=D0=B4?= =?UTF-8?q?=D0=B5=D1=80=D0=B6=D0=B8=D0=BC=D0=BE=D0=B3=D0=BE:=20=D0=BB?= =?UTF-8?q?=D0=BE=D0=B3=20=D0=BD=D0=B0=20=D0=BA=D0=B0=D0=B6=D0=B4=D0=BE?= =?UTF-8?q?=D0=B5=20E=20-=20=D0=B1=D0=BB=D0=BE=D0=BA=D0=B0=20=D0=BD=D0=B5?= =?UTF-8?q?=D1=82=20/=20=D0=BD=D0=B5=20=D0=B4=D0=B2=D0=B5=D1=80=D1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 5.5 --- HarmonySrc/Possession.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/HarmonySrc/Possession.cs b/HarmonySrc/Possession.cs index c8fbde3..3741dba 100644 --- a/HarmonySrc/Possession.cs +++ b/HarmonySrc/Possession.cs @@ -2176,6 +2176,7 @@ namespace NecromancerTome Vector3 from = cam.position + fwd * Mathf.Max(0f, Vector3.Dot(head - cam.position, fwd)); if (!Voxel.Raycast(_world, new Ray(from, fwd), UseReach, -555266077, 69, 0f)) { + Debug.Log("[NecromancerTome] Possession: E - под прицелом в " + UseReach + " м блока нет"); return false; } Vector3i pos = Voxel.voxelRayHitInfo.hit.blockPos; @@ -2194,6 +2195,7 @@ namespace NecromancerTome bool door = _world.GetTileEntity(pos) is TileEntityComposite tec && tec.GetFeature() != null; if (!door && !(b is BlockSwitch) && !(b is BlockLight) && !(b is BlockActivateSwitch)) { + Debug.Log("[NecromancerTome] Possession: E по " + b.GetBlockName() + " (" + b.GetType().Name + ") " + pos + " - не дверь и не выключатель"); return false; } BlockActivationCommand[] cmds = b.GetBlockActivationCommands(_world, bv, pos, _player);