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
5370b0e207
commit
de939ccc9a
1 changed files with 1 additions and 1 deletions
|
|
@ -704,7 +704,7 @@ class Marble extends GameObject {
|
|||
A = A.add(force.multiply(1 / mass));
|
||||
}
|
||||
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);
|
||||
A = A.add(force.multiply(1 / mass));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue