Fix moodlight saving scripting detection

This commit is contained in:
Alejandro 2020-02-11 11:44:44 +02:00
parent e596b1231d
commit b3a88c7d10

View File

@ -33,7 +33,7 @@ public class MoodLightSaveSettingsEvent extends MessageHandler {
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);
return;
}