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

Update artwork and minor fixes

This commit is contained in:
tobspr
2020-06-30 09:27:30 +02:00
parent ea868fd750
commit 755f4bd2ea
23 changed files with 623 additions and 598 deletions

View File

@@ -144,7 +144,7 @@ export class BeltSystem extends GameSystemWithFilter {
continue;
}
const targetEntities = this.root.map.getLayersContentsMultipleXY(x, y, entity.layer);
const targetEntities = this.root.map.getLayersContentsMultipleXY(x, y);
for (let i = 0; i < targetEntities.length; ++i) {
const targetEntity = targetEntities[i];
@@ -312,7 +312,7 @@ export class BeltSystem extends GameSystemWithFilter {
drawLayer(parameters, layer) {
for (let i = 0; i < this.beltPaths.length; ++i) {
const path = this.beltPaths[i];
if (path.layer === layer) {
if (path.getLayer() === layer) {
path.draw(parameters);
}
}