Skip to content

Commit

Permalink
Fix not getting the correct BlockType
Browse files Browse the repository at this point in the history
  • Loading branch information
Mgazul committed Dec 23, 2020
1 parent dd2f764 commit 218544c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ version '6.1.9-0.3-SNAPSHOT'
repositories {
mavenLocal()
mavenCentral()
maven { url "https://raw.githubusercontent.com/Mohist-Community/Mohist-Maven/master/maven" }
maven { url "https://github.com/mohist-community/maven/raw/master" }
maven { url "http://repo.bukkit.org/content/groups/public" }
maven { url "http://maven.sk89q.com/repo/" }
maven { url "http://repo.maven.apache.org/maven2" }
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/mohistmc/worldeditfix/WorldEditFix.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public static void init() {
for (Material material : Material.values()) {
if (material.isForgeBlock()) {
String name = material.name();
int newid = material.getId();
Integer newid = material.getBlockID();
BlockType bt = EnumHelper.addEnum(BlockType.class, name, new Class[] { Integer.TYPE, String.class, String.class }, newid, name, name.toLowerCase());
BlockType.ids.put(newid, bt);
BlockType.lookup.put(name.toLowerCase(), bt);
Expand Down

0 comments on commit 218544c

Please sign in to comment.