mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2024-11-23 07:20:50 +01:00
Fix moodlight saving scripting detection
This commit is contained in:
parent
e596b1231d
commit
b3a88c7d10
@ -33,7 +33,7 @@ public class MoodLightSaveSettingsEvent extends MessageHandler {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (brightness > 0xFF || brightness <= (0.3 * 0xFF)) {
|
if (brightness > 0xFF || brightness < (0.3 * 0xFF)) {
|
||||||
ScripterManager.scripterDetected(this.client, "User tried to set a moodlight's brightness to out-of-bounds ([76, 255]): " + brightness);
|
ScripterManager.scripterDetected(this.client, "User tried to set a moodlight's brightness to out-of-bounds ([76, 255]): " + brightness);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user