Changed temporary display item so it doesn't bug with 1.11
This commit is contained in:
parent
d19d661c7d
commit
5e420a20d8
@ -1,6 +1,5 @@
|
||||
package mineplex.core.gadget.gadgets.balloons;
|
||||
|
||||
import org.bukkit.Material;
|
||||
import org.bukkit.entity.Ageable;
|
||||
import org.bukkit.entity.Entity;
|
||||
import org.bukkit.entity.Player;
|
||||
@ -15,7 +14,9 @@ public class BalloonItem extends BalloonGadget
|
||||
|
||||
public BalloonItem(GadgetManager manager, BalloonType balloonType)
|
||||
{
|
||||
super(manager, balloonType.getName(), balloonType.getLore(), balloonType.getCost(), Material.GLASS, (byte) 0, balloonType.getEntityType());
|
||||
super(manager, balloonType.getName(), balloonType.getLore(), balloonType.getCost(),
|
||||
balloonType.getDisplayItem().getType(),
|
||||
balloonType.getDisplayItem().getData().getData(), balloonType.getEntityType());
|
||||
// TODO ADD DISPLAY ITEM
|
||||
_balloonType = balloonType;
|
||||
}
|
||||
|
@ -10,7 +10,8 @@ import mineplex.core.common.util.UtilText;
|
||||
public enum BalloonType
|
||||
{
|
||||
|
||||
BABY_COW(EntityType.COW, true, "Baby Cow Balloon", UtilText.splitLinesToArray(new String[]{"Placeholder"}, LineFormat.LORE), 0, new ItemStack(Material.MONSTER_EGG, 1, EntityType.COW.getTypeId()));
|
||||
BABY_COW(EntityType.COW, true, "Baby Cow Balloon", UtilText.splitLinesToArray(new String[]{"Placeholder"}, LineFormat.LORE), 0, new ItemStack(Material.GLASS)),
|
||||
BABY_PIG(EntityType.PIG, true, "Baby Pig Balloon", UtilText.splitLinesToArray(new String[]{"Placeholder"}, LineFormat.LORE), 0, new ItemStack(Material.GLASS));
|
||||
|
||||
private EntityType _entityType;
|
||||
private boolean _isBaby;
|
||||
|
Loading…
Reference in New Issue
Block a user