Двери одержимого: лог на каждое E - блока нет / не дверь

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
AlexCube
2026-10-13 17:51:47 +03:00
co-authored by Claude Opus 5.5
parent 0397e08e64
commit 25f9572be0
+2
View File
@@ -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<TEFeatureDoor>() != 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);