Skip to content

Commit

Permalink
change transformable entity list into immutable set
Browse files Browse the repository at this point in the history
  • Loading branch information
nossr50 committed Sep 28, 2024
1 parent d7e8a6b commit 8087d5f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>com.gmail.nossr50.mcMMO</groupId>
<artifactId>mcMMO</artifactId>
<version>2.2.022</version>
<version>2.2.023-SNAPSHOT</version>
<name>mcMMO</name>
<url>https://github.com/mcMMO-Dev/mcMMO</url>
<scm>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@

import java.util.Arrays;
import java.util.List;
import java.util.Set;

import static com.gmail.nossr50.util.MobMetadataUtils.*;

Expand All @@ -58,7 +59,8 @@ public class EntityListener implements Listener {
* check if a {@link Player} has a {@link Trident} enchanted with "Piercing".
*/
private final NamespacedKey piercingEnchantment = NamespacedKey.minecraft("piercing");
private final static List<EntityType> TRANSFORMABLE_ENTITIES = Arrays.asList(EntityType.SLIME, EntityType.MAGMA_CUBE);
private final static Set<EntityType> TRANSFORMABLE_ENTITIES
= Set.of(EntityType.SLIME, EntityType.MAGMA_CUBE);

public EntityListener(final mcMMO pluginRef) {
this.pluginRef = pluginRef;
Expand Down

0 comments on commit 8087d5f

Please sign in to comment.