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);