Skip to content

Commit

Permalink
stop complaining about mirror shader shit
Browse files Browse the repository at this point in the history
  • Loading branch information
Vortex2Oblivion committed Feb 3, 2024
1 parent 78ed469 commit a3cb437
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions source/modding/ModchartUtilities.hx
Original file line number Diff line number Diff line change
Expand Up @@ -2690,10 +2690,10 @@ class ModchartUtilities {
if (!Options.getData("shaders"))
return;

var funnyCustomShader:CustomShader = lua_Custom_Shaders.get(shaderName);
if(getCharacterByName(actorStr) != null)
var funnyCustomShader:CustomShader = lua_Custom_Shaders.get(id);
if(getCharacterByName(actor) != null)
{
var character = getCharacterByName(actorStr);
var character = getCharacterByName(actor);
if (character.otherCharacters != null && character.otherCharacters.length > 0)
{
for (c in 0...character.otherCharacters.length)
Expand All @@ -2703,7 +2703,7 @@ class ModchartUtilities {
return;
}
}
var actor = getActorByName(actorStr);
var actor = getActorByName(actor);


if(actor != null && funnyCustomShader != null) actor.shader = funnyCustomShader;
Expand Down

0 comments on commit a3cb437

Please sign in to comment.