mirror of
https://github.com/RandomityGuy/MBHaxe.git
synced 2025-10-30 08:11:25 +00:00
more marble null checks
This commit is contained in:
parent
7899a15bb9
commit
414740bb19
1 changed files with 1 additions and 1 deletions
|
|
@ -704,7 +704,7 @@ class Marble extends GameObject {
|
||||||
A = A.add(force.multiply(1 / mass));
|
A = A.add(force.multiply(1 / mass));
|
||||||
}
|
}
|
||||||
for (marble in level.marbles) {
|
for (marble in level.marbles) {
|
||||||
if (marble != cast this) {
|
if ((marble != cast this) && !marble._firstTick) {
|
||||||
var force = marble.getForce(this.collider.transform.getPosition(), Net.isHost ? timeState.ticks : serverTicks);
|
var force = marble.getForce(this.collider.transform.getPosition(), Net.isHost ? timeState.ticks : serverTicks);
|
||||||
A = A.add(force.multiply(1 / mass));
|
A = A.add(force.multiply(1 / mass));
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue