mirror of
https://github.com/BlueMap-Minecraft/BlueMap.git
synced 2024-11-25 20:16:00 +01:00
Merge branch 'master' into feature/sql
This commit is contained in:
commit
8d87d3e930
8
.github/workflows/gradle.yml
vendored
8
.github/workflows/gradle.yml
vendored
@ -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
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user