fix cannot find method mapping when building

This commit is contained in:
Bella 2019-12-04 10:30:12 -05:00
parent 8e73a01711
commit 8c6a3e8029
1 changed files with 1 additions and 1 deletions

View File

@ -17,7 +17,7 @@ import java.util.List;
@Mixin(GuiPlayerTabOverlay.class)
public class MixinGuiPlayerTabOverlay {
@Redirect(method = "renderPlayerlist", at = @At(value = "INVOKE", target = "Ljava/util/List;subList(II)Ljava/util/List;"))
@Redirect(method = "renderPlayerlist", at = @At(value = "INVOKE", target = "Ljava/util/List;subList(II)Ljava/util/List;", remap = false))
public List subList(List list, int fromIndex, int toIndex) {
return list.subList(fromIndex, ExtraTab.INSTANCE.isEnabled() ? Math.min(ExtraTab.INSTANCE.tabSize.getValue(), list.size()) : toIndex);
}