|
@@ -7,10 +7,10 @@ package me.shedaniel.rei.gui;
|
|
|
|
|
|
import com.google.common.collect.Lists;
|
|
|
import com.google.common.collect.Maps;
|
|
|
+import com.mojang.blaze3d.systems.RenderSystem;
|
|
|
import com.zeitheron.hammercore.client.utils.Scissors;
|
|
|
import me.shedaniel.math.api.Point;
|
|
|
import me.shedaniel.math.api.Rectangle;
|
|
|
-import com.mojang.blaze3d.systems.RenderSystem;
|
|
|
import me.shedaniel.math.impl.PointHelper;
|
|
|
import me.shedaniel.rei.RoughlyEnoughItemsCore;
|
|
|
import me.shedaniel.rei.api.*;
|
|
@@ -375,10 +375,10 @@ public class VillagerRecipeViewingScreen extends Screen {
|
|
|
RenderSystem.shadeModel(7425);
|
|
|
buffer.begin(7, VertexFormats.POSITION_COLOR);
|
|
|
float b = ScreenHelper.isDarkModeEnabled() ? 0.37f : 1f;
|
|
|
- buffer.vertex(scrollbarPositionMinX, minY + scrollBarHeight, 1000D).color(b, b, b, scrollBarAlpha).next();
|
|
|
- buffer.vertex(scrollbarPositionMaxX, minY + scrollBarHeight, 1000D).color(b, b, b, scrollBarAlpha).next();
|
|
|
- buffer.vertex(scrollbarPositionMaxX, minY, 1000D).color(b, b, b, scrollBarAlpha).next();
|
|
|
- buffer.vertex(scrollbarPositionMinX, minY, 1000D).color(b, b, b, scrollBarAlpha).next();
|
|
|
+ buffer.method_22912(scrollbarPositionMinX, minY + scrollBarHeight, 1000D).method_22915(b, b, b, scrollBarAlpha).next();
|
|
|
+ buffer.method_22912(scrollbarPositionMaxX, minY + scrollBarHeight, 1000D).method_22915(b, b, b, scrollBarAlpha).next();
|
|
|
+ buffer.method_22912(scrollbarPositionMaxX, minY, 1000D).method_22915(b, b, b, scrollBarAlpha).next();
|
|
|
+ buffer.method_22912(scrollbarPositionMinX, minY, 1000D).method_22915(b, b, b, scrollBarAlpha).next();
|
|
|
tessellator.draw();
|
|
|
RenderSystem.shadeModel(7424);
|
|
|
RenderSystem.disableBlend();
|