bf-pixel-dead
This commit is contained in:
@@ -368,7 +368,7 @@ class FunkinShader extends FlxShader implements IHScriptCustomBehaviour {
|
||||
}
|
||||
if (!Reflect.hasField(data, name)) return null;
|
||||
var field = Reflect.field(data, name);
|
||||
var cl = Std.string(Type.getClass(field));
|
||||
var cl = Type.getClassName(Type.getClass(field));
|
||||
|
||||
// cant do "field is ShaderInput" for some reason
|
||||
if (cl.startsWith("openfl.display.ShaderParameter")) {
|
||||
@@ -393,8 +393,7 @@ class FunkinShader extends FlxShader implements IHScriptCustomBehaviour {
|
||||
return val;
|
||||
} else {
|
||||
var field = Reflect.field(data, name);
|
||||
var cl = Std.string(Type.getClass(field));
|
||||
|
||||
var cl = Type.getClassName(Type.getClass(field));
|
||||
// cant do "field is ShaderInput" for some reason
|
||||
if (cl.startsWith("openfl.display.ShaderParameter")) {
|
||||
@:privateAccess
|
||||
|
||||
@@ -30,9 +30,11 @@ class CharacterGhostsHandler extends FlxTypedGroup<Character> {
|
||||
|
||||
public function removeGhost(anim:String) {
|
||||
var ghost:Character = animGhosts.get(anim);
|
||||
@:privateAccess ghost.animation._curAnim = null;
|
||||
animGhosts.remove(anim);
|
||||
ghost.destroy();
|
||||
@:privateAccess if (ghost != null) {
|
||||
ghost.animation._curAnim = null;
|
||||
animGhosts.remove(anim);
|
||||
ghost.destroy();
|
||||
}
|
||||
}
|
||||
|
||||
public function updateInfos(xml:Xml) {
|
||||
|
||||
Reference in New Issue
Block a user