Skip to content

Commit

Permalink
Merge pull request #5542 from TownyAdvanced/fix/axolotl-stealing-pt2
Browse files Browse the repository at this point in the history
Prevent the theft of axolotls
  • Loading branch information
LlmDl authored Dec 18, 2021
2 parents 5a06d7f + 7a51ef9 commit 3c8eacb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -511,6 +511,7 @@ public void onPlayerInteractEntity(PlayerInteractEntityEvent event) {
case MINECART_COMMAND:
case MINECART_TNT:
case MINECART_MOB_SPAWNER:
case AXOLOTL:
mat = EntityTypeUtil.parseEntityToMaterial(event.getRightClicked().getType());
break;
/*
Expand Down
2 changes: 1 addition & 1 deletion src/com/palmergames/bukkit/towny/utils/EntityTypeUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public static Material parseEntityToMaterial(EntityType entityType) {
switch(entityType) {

case AXOLOTL:
material = Material.AXOLOTL_SPAWN_EGG;
material = Material.AXOLOTL_BUCKET;
break;

case COD:
Expand Down

0 comments on commit 3c8eacb

Please sign in to comment.