fix
This commit is contained in:
parent
45d8c773ee
commit
fc08940a81
|
|
@ -1,9 +1,9 @@
|
||||||
doLog = true;
|
doLog = true;
|
||||||
oldChangePixel = changePixel;
|
oldChangePixel = changePixel;
|
||||||
function changePixel(pixel,element,changetemp=true) {
|
changePixel = function(pixel,element,changetemp=true) {
|
||||||
if(!elements[element]) {
|
if(typeof(elements[element]) == "undefined") {
|
||||||
if(doLog) { console.error(`Something tried to change a pixel (${pixel.x},${pixel.y}) to nonexistent element "${element}"`) };
|
if(doLog) { console.error(`Something tried to change a pixel (${pixel.x},${pixel.y}) to nonexistent element "${element}"`) };
|
||||||
|
return false;
|
||||||
};
|
};
|
||||||
return false;
|
oldChangePixel(pixel,element,changetemp);
|
||||||
changePixel(pixel,element,changetemp);
|
};
|
||||||
};
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue