Skip to content

Commit d59015f

Browse files
committed
Don't a log warning when remapping @shadow without a target class.
1 parent dbeaf70 commit d59015f

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ plugins {
66
id 'com.github.johnrengelman.shadow' version '8.1.1'
77
}
88

9-
version = '0.11.0'
9+
version = '0.11.1'
1010

1111
def ENV = System.getenv()
1212
version = version + (ENV.GITHUB_ACTIONS ? "" : "+local")

src/main/java/net/fabricmc/tinyremapper/extension/mixin/hard/util/ConvertibleMappable.java

+4
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,10 @@ protected Stream<String> mapMultiTarget(IConvertibleString name, String desc) {
5858

5959
@Override
6060
protected Optional<String> getMappedName() {
61+
if (targets.isEmpty()) {
62+
return Optional.empty();
63+
}
64+
6165
List<String> collection = mapMultiTarget(getName(), getDesc())
6266
.collect(Collectors.toList());
6367

0 commit comments

Comments
 (0)