Merge branch 'master' into feature/sql

This commit is contained in:
Lukas Rieger (Blue) 2022-01-09 15:44:40 +01:00
commit 8d87d3e930
No known key found for this signature in database
GPG Key ID: 2D09EC5ED2687FF2
2 changed files with 9 additions and 1 deletions

View File

@ -13,6 +13,14 @@ jobs:
uses: actions/setup-java@v1
with:
java-version: 16
- uses: actions/cache@v2
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: "${{ runner.os }}-bluemap-${{ hashFiles('**/*.gradle*') }}"
restore-keys: |
${{ runner.os }}-bluemap-
- name: Build with Gradle
run: ./gradlew clean test build
- uses: actions/upload-artifact@v2

View File

@ -122,7 +122,7 @@ public void update() {
Optional<List<PotionEffect>> effects = player.get(Keys.POTION_EFFECTS);
if (effects.isPresent()) {
for (PotionEffect effect : effects.get()) {
if (effect.type().equals(PotionEffectTypes.INVISIBILITY.get()) && effect.duration() > 0) invis = true;
if (effect.type().equals(PotionEffectTypes.INVISIBILITY.get()) && effect.duration().ticks() > 0) invis = true;
}
}
}