made pressure plates, buttons, and levers from working with block toss
This commit is contained in:
parent
bccee71ff7
commit
04c7f2c1f1
@ -62,7 +62,14 @@ public class BlockToss extends SkillCharge implements IThrown
|
|||||||
Material.BURNING_FURNACE,
|
Material.BURNING_FURNACE,
|
||||||
Material.WORKBENCH,
|
Material.WORKBENCH,
|
||||||
Material.WATER,
|
Material.WATER,
|
||||||
Material.LAVA
|
Material.LAVA,
|
||||||
|
Material.STONE_PLATE,
|
||||||
|
Material.WOOD_PLATE,
|
||||||
|
Material.GOLD_PLATE,
|
||||||
|
Material.IRON_PLATE,
|
||||||
|
Material.STONE_BUTTON,
|
||||||
|
Material.WOOD_BUTTON,
|
||||||
|
Material.LEVER,
|
||||||
};
|
};
|
||||||
|
|
||||||
public BlockToss(SkillFactory skills, String name, ClassType classType, SkillType skillType, int cost, int levels)
|
public BlockToss(SkillFactory skills, String name, ClassType classType, SkillType skillType, int cost, int levels)
|
||||||
@ -127,8 +134,10 @@ public class BlockToss extends SkillCharge implements IThrown
|
|||||||
//Blacklist
|
//Blacklist
|
||||||
for (Material mat : _blacklist)
|
for (Material mat : _blacklist)
|
||||||
if (mat == grab.getType())
|
if (mat == grab.getType())
|
||||||
|
{
|
||||||
|
UtilPlayer.message(player, F.main("Game", "You cannot grab this block."));
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
//Usable
|
//Usable
|
||||||
if (UtilBlock.usable(grab))
|
if (UtilBlock.usable(grab))
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user