Skip to content
This repository was archived by the owner on Mar 8, 2022. It is now read-only.

Commit 85fe28a

Browse files
committed
1.13-pre7
1 parent 613d0bd commit 85fe28a

File tree

4 files changed

+5
-12
lines changed

4 files changed

+5
-12
lines changed

build.gradle

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ configurations.all {
1010
// Note the spaces before and after the equals sign
1111
ext.majorVersion = 5
1212
ext.minorVersion = 0
13-
ext.minecraftVersion = "1.12"
13+
ext.minecraftVersion = "1.13-pre7"
1414

1515
sourceCompatibility = 1.8
1616
targetCompatibility = 1.8
@@ -55,7 +55,7 @@ repositories {
5555

5656
dependencies {
5757
compile 'net.milkbowl.vault:VaultAPI:1.6'
58-
compile 'cat.nyaa:nyaacore:5.0-SNAPSHOT'
58+
compile 'cat.nyaa:nyaacore:6.0-SNAPSHOT'
5959
compile('net.ess3:Essentials:2.13-SNAPSHOT') {
6060
transitive = false
6161
}

src/main/java/cat/nyaa/HamsterEcoHelper/signshop/SignShopManager.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public static boolean isChest(Block block) {
4444

4545
public static boolean isSign(Block block) {
4646
if (block != null &&
47-
(block.getType().equals(Material.WALL_SIGN) || block.getType().equals(Material.SIGN_POST))) {
47+
(block.getType().equals(Material.WALL_SIGN) || block.getType().equals(Material.SIGN))) {
4848
return true;
4949
}
5050
return false;

src/main/java/cat/nyaa/HamsterEcoHelper/utils/MiscUtils.java

+1-8
Original file line numberDiff line numberDiff line change
@@ -85,15 +85,8 @@ public static String getItemName(ItemStack item) {
8585
return itemName;
8686
}
8787

88-
@SuppressWarnings("deprecation")
8988
public static Material getMaterial(String name) {
90-
Material m = null;
91-
if (name.toLowerCase().contains("minecraft:")) {
92-
m = Bukkit.getServer().getUnsafe().getMaterialFromInternalName(name);
93-
} else {
94-
m = Material.matchMaterial(name);
95-
}
96-
return m;
89+
return Material.matchMaterial(name);
9790
}
9891

9992
@LangKey(type = LangKeyType.SUFFIX)

src/main/resources/plugin.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ depend: [Vault,NyaaCore,LangUtils]
66
softdepend: [Essentials,LockettePro]
77
authors: [cyilin, RecursiveG]
88
website: "https://github.com/NyaaCat/HamsterEcoHelper"
9-
9+
api-version: 1.13
1010
commands:
1111
hamsterecohelper:
1212
description: The command for HamsterEcoHelper

0 commit comments

Comments
 (0)