Use enum instead of magic number

This commit is contained in:
Nucleus 2020-04-26 13:10:51 +02:00
parent 4cb439ec0b
commit 363a8d7064
1 changed files with 1 additions and 1 deletions

View File

@ -115,7 +115,7 @@ public class Search extends Module {
@Override
public void onEnable() {
if (!overrideWarning.getValue() && GlStateManager.glGetString(7936).contains("Intel")) {
if (!overrideWarning.getValue() && GlStateManager.glGetString(GL11.GL_VENDOR).contains("Intel")) {
sendErrorMessage(getChatName() + "Warning: Running Search with an Intel Integrated GPU is not recommended, as it has a &llarge&r impact on performance.");
sendWarningMessage(getChatName() + "If you're sure you want to try, run the &7" + Command.getCommandPrefix() + "search override&f command");
disable();