Skip to content

Commit dd66a6d

Browse files
committed
Formal update to 1.10, release prep. Also fixes #10.
1 parent 917358f commit dd66a6d

File tree

4 files changed

+30
-3
lines changed

4 files changed

+30
-3
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# HiddenOre
22

3+
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 .
4+
35
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.
46

57
## Overview

pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<groupId>com.github.devotedmc</groupId>
88
<artifactId>hiddenore</artifactId>
9-
<version>1.2.1</version>
9+
<version>1.2.2</version>
1010
<name>HiddenOre</name>
1111

1212
<repositories>
@@ -20,7 +20,7 @@
2020
<dependency>
2121
<groupId>org.spigotmc</groupId>
2222
<artifactId>spigot-api</artifactId>
23-
<version>1.9.2-R0.1-SNAPSHOT</version>
23+
<version>1.10-R0.1-SNAPSHOT</version>
2424
</dependency>
2525
</dependencies>
2626

src/main/java/com/github/devotedmc/hiddenore/listeners/BlockBreakListener.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ private void doBlockBreak(BlockBreakEvent event) {
141141
ItemStack inMainHand = p.getInventory().getItemInMainHand();
142142

143143
// Check SilkTouch failfast, if configured.
144-
if (!Config.instance.ignoreSilktouch && inMainHand.hasItemMeta() &&
144+
if (!Config.instance.ignoreSilktouch && inMainHand != null && inMainHand.hasItemMeta() &&
145145
inMainHand.getEnchantments() != null && inMainHand.getEnchantments().containsKey(Enchantment.SILK_TOUCH)) {
146146
return;
147147
}

src/main/java/com/github/devotedmc/hiddenore/util/FakePlayer.java

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1816,4 +1816,29 @@ public Spigot spigot() {
18161816
return null;
18171817
}
18181818

1819+
@Override
1820+
public boolean isSilent() {
1821+
return false;
1822+
}
1823+
1824+
@Override
1825+
public void setSilent(boolean flag) {
1826+
}
1827+
1828+
@Override
1829+
public boolean hasGravity() {
1830+
return false;
1831+
}
1832+
1833+
@Override
1834+
public void setGravity(boolean gravity) {
1835+
}
1836+
1837+
@Override
1838+
public void stopSound(Sound sound) {
1839+
}
1840+
1841+
@Override
1842+
public void stopSound(String sound) {
1843+
}
18191844
}

0 commit comments

Comments
 (0)