Give stone swords to wither skeletons on spawn.

Fixes #538
This commit is contained in:
Andreas Troelsen 2019-07-20 22:39:22 +02:00
parent 7317c64678
commit a3004d6403
2 changed files with 4 additions and 0 deletions

View File

@ -13,6 +13,7 @@ These changes will (most likely) be included in the next version.
## [Unreleased]
- MobArena no longer crashes when players try to join with items that lower their max health below the default of 20. Players with lower max health will notice missing health in the lobby, but it will quickly regenerate to full.
- Food levels no longer deplete for players in the lobby and spectator area.
- Wither skeletons now correctly spawn with stone swords.
## [0.103.2] - 2019-04-23
- MobArena no longer touches the `flySpeed` player attribute when players join an arena. This should fix issues where a crash would result in players being "locked in the air" when trying to fly outside of the arena. It also introduces compatibility with plugins that use flight to augment player abilities.

View File

@ -177,6 +177,9 @@ public class MACreature
case "killerbunny":
((Rabbit) e).setRabbitType(Rabbit.Type.THE_KILLER_BUNNY);
break;
case "witherskeleton":
e.getEquipment().setItemInMainHand(new ItemStack(Material.STONE_SWORD, 1));
break;
default:
break;
}