Skip to content

Commit

Permalink
Formal update to 1.10, release prep. Also fixes #10.
Browse files Browse the repository at this point in the history
  • Loading branch information
ProgrammerDan committed Jun 26, 2016
1 parent 917358f commit dd66a6d
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 3 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# HiddenOre

Brought to you by the developers from https://www.reddit.com/r/Devoted and https://www.github.com/DevotedMC -- check out our server at play.devotedmc.com and our website at www.devotedmc.com .

Massively configurable, low-impact plugin to allow post world generation ore balance, via either drops, or ad-hoc generation of ores into the blocks of the world on-demand. It works as a wonderful anti-xray plugin, and as a powerful incentive tool for mining.

## Overview
Expand Down
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>com.github.devotedmc</groupId>
<artifactId>hiddenore</artifactId>
<version>1.2.1</version>
<version>1.2.2</version>
<name>HiddenOre</name>

<repositories>
Expand All @@ -20,7 +20,7 @@
<dependency>
<groupId>org.spigotmc</groupId>
<artifactId>spigot-api</artifactId>
<version>1.9.2-R0.1-SNAPSHOT</version>
<version>1.10-R0.1-SNAPSHOT</version>
</dependency>
</dependencies>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ private void doBlockBreak(BlockBreakEvent event) {
ItemStack inMainHand = p.getInventory().getItemInMainHand();

// Check SilkTouch failfast, if configured.
if (!Config.instance.ignoreSilktouch && inMainHand.hasItemMeta() &&
if (!Config.instance.ignoreSilktouch && inMainHand != null && inMainHand.hasItemMeta() &&
inMainHand.getEnchantments() != null && inMainHand.getEnchantments().containsKey(Enchantment.SILK_TOUCH)) {
return;
}
Expand Down
25 changes: 25 additions & 0 deletions src/main/java/com/github/devotedmc/hiddenore/util/FakePlayer.java
Original file line number Diff line number Diff line change
Expand Up @@ -1816,4 +1816,29 @@ public Spigot spigot() {
return null;
}

@Override
public boolean isSilent() {
return false;
}

@Override
public void setSilent(boolean flag) {
}

@Override
public boolean hasGravity() {
return false;
}

@Override
public void setGravity(boolean gravity) {
}

@Override
public void stopSound(Sound sound) {
}

@Override
public void stopSound(String sound) {
}
}

0 comments on commit dd66a6d

Please sign in to comment.