Skip to content

Commit

Permalink
possible improvement for 1.13 material handling
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed Jan 13, 2019
1 parent c3b5863 commit b573635
Showing 1 changed file with 3 additions and 0 deletions.
Expand Up @@ -534,6 +534,9 @@ public static dMaterial registerVariety(dMaterial material) {

// Called on startup
public static void _initialize() {
if (NMSHandler.getVersion().isAtLeast(NMSVersion.v1_13_R2)) {
return;
}
for (dMaterials material : dMaterials.values()) {
try {
Field field = dMaterial.class.getField(material.name());
Expand Down

0 comments on commit b573635

Please sign in to comment.