mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-26 15:16:45 +01:00
commit
a731ad14ec
2
pom.xml
2
pom.xml
@ -135,7 +135,7 @@
|
||||
<dependency>
|
||||
<groupId>org.bukkit</groupId>
|
||||
<artifactId>bukkit</artifactId>
|
||||
<version>1.12-pre2-SNAPSHOT</version>
|
||||
<version>1.12.1-R0.1-SNAPSHOT</version>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
|
@ -240,7 +240,7 @@ public class PlayerListener implements Listener {
|
||||
return;
|
||||
|
||||
case IN_GROUND:
|
||||
Block block = player.getTargetBlock((HashSet<Byte>) null, 100);
|
||||
Block block = player.getTargetBlock((HashSet<Material>) null, 100);
|
||||
|
||||
if (fishingManager.canIceFish(block)) {
|
||||
event.setCancelled(true);
|
||||
|
@ -104,7 +104,7 @@ public class FishingManager extends SkillManager {
|
||||
vehicle.remove();
|
||||
}
|
||||
|
||||
player.teleport(player.getTargetBlock((HashSet<Byte>) null, 100).getLocation(), TeleportCause.PLUGIN);
|
||||
player.teleport(player.getTargetBlock((HashSet<Material>) null, 100).getLocation(), TeleportCause.PLUGIN);
|
||||
|
||||
String unleashMessage = AdvancedConfig.getInstance().getPlayerUnleashMessage();
|
||||
|
||||
@ -167,7 +167,7 @@ public class FishingManager extends SkillManager {
|
||||
return false;
|
||||
}
|
||||
|
||||
Block targetBlock = getPlayer().getTargetBlock((HashSet<Byte>) BlockUtils.getTransparentBlocks(), 100);
|
||||
Block targetBlock = getPlayer().getTargetBlock((HashSet<Material>) BlockUtils.getTransparentBlocks(), 100);
|
||||
|
||||
if (!targetBlock.isLiquid()) {
|
||||
return false;
|
||||
@ -649,6 +649,6 @@ public class FishingManager extends SkillManager {
|
||||
}
|
||||
}
|
||||
|
||||
return 0;
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
|
@ -94,7 +94,7 @@ public class MiningManager extends SkillManager {
|
||||
*/
|
||||
public void remoteDetonation() {
|
||||
Player player = getPlayer();
|
||||
Block targetBlock = player.getTargetBlock((HashSet<Byte>) BlockUtils.getTransparentBlocks(), BlastMining.MAXIMUM_REMOTE_DETONATION_DISTANCE);
|
||||
Block targetBlock = player.getTargetBlock((HashSet<Material>) BlockUtils.getTransparentBlocks(), BlastMining.MAXIMUM_REMOTE_DETONATION_DISTANCE);
|
||||
|
||||
if (targetBlock.getType() != Material.TNT || !EventUtils.simulateBlockBreak(targetBlock, player, true) || !blastMiningCooldownOver()) {
|
||||
return;
|
||||
|
@ -305,12 +305,12 @@ public final class BlockUtils {
|
||||
*
|
||||
* @return HashSet with the IDs of every transparent block
|
||||
*/
|
||||
public static HashSet<Byte> getTransparentBlocks() {
|
||||
HashSet<Byte> transparentBlocks = new HashSet<Byte>();
|
||||
public static HashSet<Material> getTransparentBlocks() {
|
||||
HashSet<Material> transparentBlocks = new HashSet<Material>();
|
||||
|
||||
for (Material material : Material.values()) {
|
||||
if (material.isTransparent()) {
|
||||
transparentBlocks.add((byte) material.getId());
|
||||
transparentBlocks.add(material);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -340,7 +340,7 @@ permissions:
|
||||
mcmmo.ability.herbalism.greenthumb.plants.crops: true
|
||||
mcmmo.ability.herbalism.greenthumb.plants.netherwarts: true
|
||||
mcmmo.ability.herbalism.greenthumb.plants.potato: true
|
||||
mcmmo.ability.herbalism.greenthumb.plants.beetroot: true
|
||||
mcmmo.ability.herbalism.greenthumb.plants.beetrootblock: true
|
||||
mcmmo.ability.herbalism.greenthumb.plants.carrot:
|
||||
description: Allows access to the Green Thumb ability for carrots
|
||||
mcmmo.ability.herbalism.greenthumb.plants.cocoa:
|
||||
@ -351,7 +351,7 @@ permissions:
|
||||
description: Allows access to the Green Thumb ability for netherwart
|
||||
mcmmo.ability.herbalism.greenthumb.plants.potato:
|
||||
description: Allows access to the Green Thumb ability for potatoes
|
||||
mcmmo.ability.herbalism.greenthumb.plants.beetroot:
|
||||
mcmmo.ability.herbalism.greenthumb.plants.beetrootblock:
|
||||
description: Allows access to the Green Thumb ability for beetrootes
|
||||
mcmmo.ability.herbalism.hylianluck:
|
||||
description: Allows access to the Hylian Luck ability
|
||||
|
Loading…
Reference in New Issue
Block a user