hardcode admin-only area in 3d canvas

This commit is contained in:
HF 2020-04-11 23:29:48 +02:00
parent 93ea65f27d
commit 87c7709275

View File

@ -163,7 +163,11 @@ async function draw(
};
}
if (setColor & 0x80) {
if (setColor & 0x80
|| (canvas.v
&& x >= 96 && x <= 128 && y >= 35 && y <= 1000
&& !user.isAdmin())
) {
logger.info(`${user.ip} tried to set on protected pixel (${x}, ${y})`);
return {
errorTitle: 'Pixel Protection',