mirror of
https://github.com/BentoBoxWorld/AcidIsland.git
synced 2024-11-29 06:05:27 +01:00
parent
8a0928f087
commit
d722e9f4ad
2
pom.xml
2
pom.xml
@ -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>
|
||||
|
@ -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;
|
||||
@ -21,6 +21,8 @@ import org.bukkit.entity.Monster;
|
||||
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;
|
||||
@ -29,7 +31,15 @@ import world.bentobox.acidisland.listeners.AcidEffect;
|
||||
|
||||
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;
|
||||
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user