From a4b7f689c01533dd2b255ca09ee0ee9162589c15 Mon Sep 17 00:00:00 2001 From: NorbiPeti Date: Mon, 2 Sep 2019 15:38:04 +0200 Subject: [PATCH] Fix Travis --- .travis.yml | 1 + src/main/java/buttondevteam/chat/VanillaUtils.java | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 808d9b0..1d962ae 100644 --- a/.travis.yml +++ b/.travis.yml @@ -11,6 +11,7 @@ language: java jdk: - oraclejdk8 sudo: true +dist: trusty # Needed for Java 8, although we might not need Java 8 deploy: # deploy develop to the staging environment - provider: script diff --git a/src/main/java/buttondevteam/chat/VanillaUtils.java b/src/main/java/buttondevteam/chat/VanillaUtils.java index a400b9e..fbbdbf3 100644 --- a/src/main/java/buttondevteam/chat/VanillaUtils.java +++ b/src/main/java/buttondevteam/chat/VanillaUtils.java @@ -47,7 +47,7 @@ public class VanillaUtils { if (notCraftPlayer(pl.getClass())) return true; //Need to check each time val ph = hm.invoke(pl); //pl.getHandle() val flags = gcfm.invoke(ph); //handle.getChatFlags() - return flags == full; //TODO: It's only checked if not global + return flags == full; } catch (Exception e) { e.printStackTrace(); return true;