Skip to content

Commit

Permalink
WireSlot - small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kdrzazga committed Dec 8, 2024
1 parent 36cc59b commit 3944cb7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion other/electrician/files/classdef.js
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ class Wire {//connects PowerLine to Floor

if (this.slots[index] === WireSlot.EMPTY){
const x = floor.getLeftPosition() + index * Wire.SIZE;
this.slots[index] = WireSlot.WIRE_UP;
this.slots[index] = WireSlot.WIRE_STRAIGHT;
this.physics.add.sprite(x, y, this.slots[index].imageId);
console.log(`Placing wire: [${x}, ${y}]. Index = ${index}`);
this.updateWiringInfo();
Expand Down

0 comments on commit 3944cb7

Please sign in to comment.