Merge pull request #1018 from JustAGenericUsername/main

the fix
This commit is contained in:
slweeb 2025-02-21 16:58:13 -05:00 committed by GitHub
commit acb0fe6af1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 13 additions and 11 deletions

View File

@ -315,7 +315,7 @@ elements.destroyable_pipe = {
var y = pixel.y+coord[1];
if (isEmpty(x,y)) {
createPixel("brick",x,y);
pixelMap[x][y].color = pixelColorPick(pixel,"#808080");
pixelMap[x][y].color = pixelColorPick(pixel,"#586879");
}
}
pixel.stage = 1;
@ -626,7 +626,7 @@ elements.e_pipe = {
var y = pixel.y+coord[1];
if (isEmpty(x,y)) {
createPixel("pipe_wall",x,y);
pixelMap[x][y].color = pixelColorPick(pixel,"#808080");
pixelMap[x][y].color = pixelColorPick(pixel,"#586879");
}
}
pixel.stage = 1;
@ -744,7 +744,7 @@ elements.destroyable_e_pipe = {
var y = pixel.y+coord[1];
if (isEmpty(x,y)) {
createPixel("brick",x,y);
pixelMap[x][y].color = pixelColorPick(pixel,"#808080");
pixelMap[x][y].color = pixelColorPick(pixel,"#586879");
}
}
pixel.stage = 1;
@ -871,7 +871,7 @@ elements.channel_pipe = {
var y = pixel.y+coord[1];
if (isEmpty(x,y)) {
createPixel("pipe_wall",x,y);
pixelMap[x][y].color = pixelColorPick(pixel,"#808080");
pixelMap[x][y].color = pixelColorPick(pixel,"#586879");
}
}
pixel.stage = 1;
@ -994,7 +994,7 @@ elements.destroyable_channel_pipe = {
var y = pixel.y+coord[1];
if (isEmpty(x,y)) {
createPixel("brick",x,y);
pixelMap[x][y].color = pixelColorPick(pixel,"#808080");
pixelMap[x][y].color = pixelColorPick(pixel,"#586879");
}
}
pixel.stage = 1;
@ -1111,7 +1111,7 @@ elements.bridge_pipe = {
var y = pixel.y+coord[1];
if (isEmpty(x,y)) {
createPixel("pipe_wall",x,y);
pixelMap[x][y].color = pixelColorPick(pixel,"#808080");
pixelMap[x][y].color = pixelColorPick(pixel,"#586879");
}
}
pixel.stage = 1;
@ -1215,15 +1215,17 @@ elements.bridge_pipe = {
canContain: true,
insulate: true,
},
elements.pipe.tick = function(pixel) {
elements.pipe.tick = function(pixel) {
if (!pixel.stage && pixelTicks-pixel.start > 60) {
for (var i = 0; i < squareCoords.length; i++) {
var coord = squareCoords[i];
var x = pixel.x+coord[0];
var y = pixel.y+coord[1];
if (!isEmpty(x,y,true) && elements[pixelMap[x][y].element].movable && newPixel.element != "ray") {
deletePixel(x,y)
}
if (isEmpty(x,y)) {
createPixel("pipe_wall",x,y);
pixelMap[x][y].color = pixelColorPick(pixel,"#808080");
}
}
pixel.stage = 1;
@ -1321,7 +1323,7 @@ elements.pipe.tick = function(pixel) {
}
}
doDefaults(pixel);
},
}
elements.pipe.insulate = true,
filterTypeVar = 0;
elements.filter = {
@ -3793,7 +3795,7 @@ elements.hotter_sensor = {
let pipe_transmitter_channelVar = 0;
elements.pipe_transmitter = {
color: "#6e6250",
category: "machines",
category: "deprecated",
movable: false,
canContain: true,
insulate: true,
@ -3824,7 +3826,7 @@ elements.pipe_transmitter = {
let pipe_receiver_channelVar = 0;
elements.pipe_receiver = {
color: "#4d4b63",
category: "machines",
category: "deprecated",
movable: false,
canContain: true,
insulate: true,