1
0
mirror of https://github.com/tobspr/shapez.io.git synced 2025-12-13 10:11:50 +00:00

Do not render belts in statics disabled view

This commit is contained in:
tobspr 2022-01-20 17:52:49 +01:00
parent 1774502304
commit 6a57448fab

View File

@ -497,6 +497,10 @@ export class BeltSystem extends GameSystem {
* @param {MapChunkView} chunk
*/
drawChunk(parameters, chunk) {
if (G_IS_DEV && globalConfig.debug.doNotRenderStatics) {
return;
}
// Limit speed to avoid belts going backwards
const speedMultiplier = Math.min(this.root.hubGoals.getBeltBaseSpeed(), 10);