mirror of
https://github.com/garbagemule/MobArena.git
synced 2024-11-23 19:16:41 +01:00
fix skeletons only punching with the bow they already have by giving them a new one
This commit is contained in:
parent
3b88b889d6
commit
333a23ecdd
@ -7,11 +7,13 @@ import java.util.Map;
|
|||||||
|
|
||||||
import org.bukkit.DyeColor;
|
import org.bukkit.DyeColor;
|
||||||
import org.bukkit.Location;
|
import org.bukkit.Location;
|
||||||
|
import org.bukkit.Material;
|
||||||
import org.bukkit.World;
|
import org.bukkit.World;
|
||||||
import org.bukkit.entity.*;
|
import org.bukkit.entity.*;
|
||||||
|
|
||||||
import com.garbagemule.MobArena.MobArena;
|
import com.garbagemule.MobArena.MobArena;
|
||||||
import com.garbagemule.MobArena.framework.Arena;
|
import com.garbagemule.MobArena.framework.Arena;
|
||||||
|
import org.bukkit.inventory.ItemStack;
|
||||||
|
|
||||||
public class MACreature
|
public class MACreature
|
||||||
{
|
{
|
||||||
@ -153,6 +155,9 @@ public class MACreature
|
|||||||
case "magmacubehuge":
|
case "magmacubehuge":
|
||||||
((Slime) e).setSize(4);
|
((Slime) e).setSize(4);
|
||||||
break;
|
break;
|
||||||
|
case "skeleton":
|
||||||
|
e.getEquipment().setItemInMainHand(new ItemStack(Material.BOW, 1));
|
||||||
|
break;
|
||||||
case "babyzombievillager":
|
case "babyzombievillager":
|
||||||
case "babyzombie":
|
case "babyzombie":
|
||||||
case "babypigman":
|
case "babypigman":
|
||||||
|
Loading…
Reference in New Issue
Block a user