Skip to content

Commit

Permalink
Version 1.15.2 (#118)
Browse files Browse the repository at this point in the history
* Add support for 1.16.5
  • Loading branch information
tastybento authored Nov 27, 2021
1 parent 8a0928f commit d722e9f
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
<!-- Do not change unless you want different name for local builds. -->
<build.number>-LOCAL</build.number>
<!-- This allows to change between versions. -->
<build.version>1.15.1</build.version>
<build.version>1.15.2</build.version>
<!-- Sonar Cloud -->
<sonar.projectKey>BentoBoxWorld_AcidIsland</sonar.projectKey>
<sonar.organization>bentobox-world</sonar.organization>
Expand Down
14 changes: 12 additions & 2 deletions src/main/java/world/bentobox/acidisland/world/AcidTask.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package world.bentobox.acidisland.world;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import java.util.Map;
import java.util.Objects;
Expand All @@ -21,6 +21,8 @@
import org.bukkit.entity.WaterMob;
import org.bukkit.scheduler.BukkitTask;

import com.google.common.base.Enums;

import world.bentobox.acidisland.AcidIsland;
import world.bentobox.acidisland.events.EntityDamageByAcidEvent;
import world.bentobox.acidisland.events.EntityDamageByAcidEvent.Acid;
Expand All @@ -29,7 +31,15 @@

public class AcidTask {
private final AcidIsland addon;
private static final List<EntityType> IMMUNE = Arrays.asList(EntityType.TURTLE, EntityType.POLAR_BEAR, EntityType.DROWNED, EntityType.AXOLOTL);
private static final List<EntityType> IMMUNE;
static {
List<EntityType> i = new ArrayList<>();
i.add(EntityType.POLAR_BEAR);
i.add(EntityType.TURTLE);
i.add(EntityType.DROWNED);
Enums.getIfPresent(EntityType.class, "AXOLOTL").toJavaUtil().ifPresent(i::add);
IMMUNE = Collections.unmodifiableList(i);
}
private Map<Entity, Long> itemsInWater = new ConcurrentHashMap<>();
private final BukkitTask findMobsTask;

Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/addon.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: AcidIsland
main: world.bentobox.acidisland.AcidIsland
version: ${version}${build.number}
api-version: ${bentobox.version}
api-version: 1.16.5
metrics: true
repository: "BentoBoxWorld/AcidIsland"
icon: "OAK_BOAT"
Expand Down

0 comments on commit d722e9f

Please sign in to comment.