|
2 | 2 |
|
3 | 3 | import dev.ryanhcode.sable.Sable; |
4 | 4 | import dev.ryanhcode.sable.SableConfig; |
5 | | -import dev.ryanhcode.sable.api.SubLevelHelper; |
6 | 5 | import dev.ryanhcode.sable.api.block.BlockEntitySubLevelActor; |
7 | | -import dev.ryanhcode.sable.companion.math.BoundingBox3d; |
8 | | -import dev.ryanhcode.sable.companion.math.BoundingBox3dc; |
9 | | -import dev.ryanhcode.sable.companion.math.Pose3d; |
10 | 6 | import dev.ryanhcode.sable.api.physics.PhysicsPipeline; |
11 | 7 | import dev.ryanhcode.sable.api.physics.handle.RigidBodyHandle; |
12 | 8 | import dev.ryanhcode.sable.api.physics.mass.MassTracker; |
13 | 9 | import dev.ryanhcode.sable.api.physics.object.ArbitraryPhysicsObject; |
14 | 10 | import dev.ryanhcode.sable.api.sublevel.ServerSubLevelContainer; |
15 | 11 | import dev.ryanhcode.sable.api.sublevel.SubLevelContainer; |
16 | 12 | import dev.ryanhcode.sable.api.sublevel.SubLevelObserver; |
| 13 | +import dev.ryanhcode.sable.companion.math.BoundingBox3d; |
| 14 | +import dev.ryanhcode.sable.companion.math.BoundingBox3dc; |
| 15 | +import dev.ryanhcode.sable.companion.math.Pose3d; |
17 | 16 | import dev.ryanhcode.sable.mixinterface.plot.SubLevelContainerHolder; |
18 | 17 | import dev.ryanhcode.sable.mixinterface.toast.SableToastableServer; |
19 | 18 | import dev.ryanhcode.sable.physics.config.PhysicsConfigData; |
@@ -506,9 +505,8 @@ public void updateMassDataFromBlockChange(final SubLevel subLevel, final BlockPo |
506 | 505 | return; |
507 | 506 | } |
508 | 507 |
|
509 | | - serverSubLevel.updateMergedMassData((float) this.getPartialPhysicsTick()); |
510 | | - |
511 | 508 | if (notifyPipeline) { |
| 509 | + serverSubLevel.updateMergedMassData((float) this.getPartialPhysicsTick()); |
512 | 510 | this.pipeline.onStatsChanged(serverSubLevel); |
513 | 511 | } |
514 | 512 | } |
|
0 commit comments