mirror of
https://github.com/RandomityGuy/MBHaxe.git
synced 2025-10-30 08:11:25 +00:00
fix teleport + respawn crash
This commit is contained in:
parent
334b3f20e2
commit
14d5432071
1 changed files with 2 additions and 3 deletions
|
|
@ -1956,9 +1956,8 @@ class Marble extends GameObject {
|
||||||
this.cloak = false;
|
this.cloak = false;
|
||||||
this._firstTick = true;
|
this._firstTick = true;
|
||||||
if (this.teleporting) {
|
if (this.teleporting) {
|
||||||
var mesh:Mesh = cast this.children[0];
|
var ourDts:DtsObject = cast this.children[0];
|
||||||
mesh.material.mainPass.removeShader(mesh.material.mainPass.getShader(AlphaMult));
|
ourDts.setOpacity(1);
|
||||||
mesh.material.blendMode = None;
|
|
||||||
}
|
}
|
||||||
this.teleporting = false;
|
this.teleporting = false;
|
||||||
this.teleportDisableTime = null;
|
this.teleportDisableTime = null;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue