Skip to content

Commit

Permalink
Add support for 1.16. (#8)
Browse files Browse the repository at this point in the history
Fixes #6 and  #7
  • Loading branch information
BONNe committed Jun 29, 2020
1 parent 261b847 commit 30a9eb7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
<java.version>1.8</java.version>
<powermock.version>1.7.4</powermock.version>
<!-- More visible way how to change dependency versions -->
<spigot.version>1.15.2-R0.1-SNAPSHOT</spigot.version>
<spigot.version>1.16.1-R0.1-SNAPSHOT</spigot.version>
<bentobox.version>1.11.0</bentobox.version>
<!-- Revision variable removes warning about dynamic version -->
<revision>${build.version}-SNAPSHOT</revision>
Expand All @@ -45,7 +45,7 @@
X.Y.Z -> BentoBox core version
.M -> Addon development iteration.
-->
<build.version>1.11.0.2</build.version>
<build.version>1.11.0.3</build.version>
<build.number>-LOCAL</build.number>
</properties>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@ public void onEntitySpawn(CreatureSpawnEvent event)
}


if (event.getEntityType() == EntityType.PIG_ZOMBIE &&
if ((event.getEntityType().name().equals("PIG_ZOMBIE") ||
event.getEntityType().name().equals("ZOMBIFIED_PIGLIN")) &&
this.addon.getPlugin().getIWM().isIslandNether(world))
{
// replace pigmen with blaze or wither
Expand Down

0 comments on commit 30a9eb7

Please sign in to comment.