mirror of
https://github.com/PorktoberRevolution/ReStocked
synced 2024-09-01 17:34:42 +00:00
Add check for if the queue has already been updated
This commit is contained in:
parent
ceb3d5d33f
commit
7a5a2a0d46
Binary file not shown.
@ -103,6 +103,7 @@ namespace Restock
|
||||
foreach (var renderer in renderers)
|
||||
{
|
||||
var queue = renderer.material.renderQueue;
|
||||
if (queue <= maskRenderQueue) continue;
|
||||
queue = meshRenderQueue + ((queue - 2000) / 2);
|
||||
renderer.material.renderQueue = queue;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user