Skip to content

Commit

Permalink
Add manual mapping test
Browse files Browse the repository at this point in the history
  • Loading branch information
thecatcore committed Jun 1, 2024
1 parent 860814a commit 6fd344e
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package io.github.fabriccompatibiltylayers.modremappingapi.test;

import io.github.fabriccompatibiltylayers.modremappingapi.api.MappingUtils;
import io.github.fabriccompatibiltylayers.modremappingapi.api.v1.MappingBuilder;
import io.github.fabriccompatibiltylayers.modremappingapi.api.v1.ModRemapper;
import io.github.fabriccompatibiltylayers.modremappingapi.api.v1.RemapLibrary;
Expand All @@ -13,6 +14,7 @@
import java.io.InputStream;
import java.nio.file.Files;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import java.util.function.Supplier;

Expand Down Expand Up @@ -59,4 +61,14 @@ public Optional<Supplier<InputStream>> getExtraMapping() {
}
});
}

@Override
public void afterRemap() {
assert Objects.equals(
MappingUtils.mapClass("net/minecraft/server/gui/TextAreaLogHandlerINNER1"),
FabricLoader.getInstance().isDevelopmentEnvironment() ?
"net/minecraft/client/class_785"
: "net/minecraft/class_785"
);
}
}

0 comments on commit 6fd344e

Please sign in to comment.