From 218544cdd184c959446a3683c4996985fe3175af Mon Sep 17 00:00:00 2001 From: Mgazul Date: Thu, 24 Dec 2020 05:38:52 +0800 Subject: [PATCH] Fix not getting the correct BlockType --- build.gradle | 2 +- src/main/java/com/mohistmc/worldeditfix/WorldEditFix.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/build.gradle b/build.gradle index ef75685..8d65107 100644 --- a/build.gradle +++ b/build.gradle @@ -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" } diff --git a/src/main/java/com/mohistmc/worldeditfix/WorldEditFix.java b/src/main/java/com/mohistmc/worldeditfix/WorldEditFix.java index 9097d0c..bc38bd2 100644 --- a/src/main/java/com/mohistmc/worldeditfix/WorldEditFix.java +++ b/src/main/java/com/mohistmc/worldeditfix/WorldEditFix.java @@ -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);