forked from RepoMirrors/kami-blue
fix cannot find method mapping when building
This commit is contained in:
parent
8e73a01711
commit
8c6a3e8029
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue