Skip to content

Commit 7f0a455

Browse files
committed
Fixed copy pasting objects
1 parent 86478c0 commit 7f0a455

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Assets/DONT TOUCH/Scripts/AutoComponentAdder.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ private static void OnChangesPublished(ref ObjectChangeEventStream stream)
4141

4242
if (instance.TryGetComponent(out MeshFilter meshFilter))
4343
{
44-
// Ignore teleports
45-
if (instance.TryGetComponent(out TeleportComponent _))
44+
// Ignore already existing SchematicBlocks
45+
if (instance.TryGetComponent(out SchematicBlock _))
4646
continue;
4747

4848
ReplaceWithPrimitive(instance, meshFilter);

0 commit comments

Comments
 (0)