hardcode admin-only area in 3d canvas
This commit is contained in:
parent
93ea65f27d
commit
87c7709275
|
@ -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',
|
||||
|
|
Loading…
Reference in New Issue
Block a user