1
0
mirror of https://github.com/tobspr/shapez.io.git synced 2026-03-02 03:39:21 +00:00

Minor improvements to belt performance

This commit is contained in:
tobspr
2020-06-14 14:20:35 +02:00
parent a0c732d1f0
commit e95b055e10
2 changed files with 27 additions and 13 deletions

View File

@@ -64,7 +64,7 @@ export class BeltComponent extends Component {
/**
* Returns if the belt can currently accept an item from the given direction
*/
canAcceptItem(leftoverProgress = 0.0) {
canAcceptItem() {
const firstItem = this.sortedItems[0];
if (!firstItem) {
return true;