Update mappings to 20200213-1.15.1
This commit is contained in:
+1
-1
@@ -82,7 +82,7 @@ task sourceJar(type: Jar, dependsOn: classes) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
minecraft {
|
minecraft {
|
||||||
mappings channel: 'snapshot', version: '20200205-1.15.1'
|
mappings channel: 'snapshot', version: '20200213-1.15.1'
|
||||||
reobfMappings 'notch'
|
reobfMappings 'notch'
|
||||||
|
|
||||||
runs {
|
runs {
|
||||||
|
|||||||
@@ -111,8 +111,8 @@ public class GuiClick extends Screen implements Helper {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void onRender(MatrixStack modelViewStack, MatrixStack projectionStack) {
|
public void onRender(MatrixStack modelViewStack, MatrixStack projectionStack) {
|
||||||
this.projectionViewMatrix = projectionStack.getLast().getPositionMatrix().copy();
|
this.projectionViewMatrix = projectionStack.getLast().getMatrix().copy();
|
||||||
this.projectionViewMatrix.multiply(modelViewStack.getLast().getPositionMatrix());
|
this.projectionViewMatrix.mul(modelViewStack.getLast().getMatrix());
|
||||||
this.projectionViewMatrix.invert();
|
this.projectionViewMatrix.invert();
|
||||||
|
|
||||||
if (currentMouseOver != null) {
|
if (currentMouseOver != null) {
|
||||||
|
|||||||
@@ -77,7 +77,7 @@ public interface IRenderer {
|
|||||||
static void drawAABB(MatrixStack stack, AxisAlignedBB aabb) {
|
static void drawAABB(MatrixStack stack, AxisAlignedBB aabb) {
|
||||||
AxisAlignedBB toDraw = aabb.offset(-renderManager.renderPosX(), -renderManager.renderPosY(), -renderManager.renderPosZ());
|
AxisAlignedBB toDraw = aabb.offset(-renderManager.renderPosX(), -renderManager.renderPosY(), -renderManager.renderPosZ());
|
||||||
|
|
||||||
Matrix4f matrix4f = stack.getLast().getPositionMatrix();
|
Matrix4f matrix4f = stack.getLast().getMatrix();
|
||||||
buffer.begin(GL_LINES, DefaultVertexFormats.POSITION);
|
buffer.begin(GL_LINES, DefaultVertexFormats.POSITION);
|
||||||
// bottom
|
// bottom
|
||||||
buffer.pos(matrix4f, (float) toDraw.minX, (float) toDraw.minY, (float) toDraw.minZ).endVertex();
|
buffer.pos(matrix4f, (float) toDraw.minX, (float) toDraw.minY, (float) toDraw.minZ).endVertex();
|
||||||
|
|||||||
@@ -181,7 +181,7 @@ public final class PathRenderer implements IRenderer, Helper {
|
|||||||
|
|
||||||
|
|
||||||
public static void drawLine(MatrixStack stack, double x1, double y1, double z1, double x2, double y2, double z2) {
|
public static void drawLine(MatrixStack stack, double x1, double y1, double z1, double x2, double y2, double z2) {
|
||||||
Matrix4f matrix4f = stack.getLast().getPositionMatrix();
|
Matrix4f matrix4f = stack.getLast().getMatrix();
|
||||||
|
|
||||||
double vpX = posX();
|
double vpX = posX();
|
||||||
double vpY = posY();
|
double vpY = posY();
|
||||||
@@ -319,7 +319,7 @@ public final class PathRenderer implements IRenderer, Helper {
|
|||||||
renderHorizontalQuad(stack, minX, maxX, minZ, maxZ, y1);
|
renderHorizontalQuad(stack, minX, maxX, minZ, maxZ, y1);
|
||||||
renderHorizontalQuad(stack, minX, maxX, minZ, maxZ, y2);
|
renderHorizontalQuad(stack, minX, maxX, minZ, maxZ, y2);
|
||||||
|
|
||||||
Matrix4f matrix4f = stack.getLast().getPositionMatrix();
|
Matrix4f matrix4f = stack.getLast().getMatrix();
|
||||||
buffer.begin(GL_LINES, DefaultVertexFormats.POSITION);
|
buffer.begin(GL_LINES, DefaultVertexFormats.POSITION);
|
||||||
buffer.pos(matrix4f, (float) minX, (float) minY, (float) minZ).endVertex();
|
buffer.pos(matrix4f, (float) minX, (float) minY, (float) minZ).endVertex();
|
||||||
buffer.pos(matrix4f, (float) minX, (float) maxY, (float) minZ).endVertex();
|
buffer.pos(matrix4f, (float) minX, (float) maxY, (float) minZ).endVertex();
|
||||||
@@ -336,7 +336,7 @@ public final class PathRenderer implements IRenderer, Helper {
|
|||||||
|
|
||||||
private static void renderHorizontalQuad(MatrixStack stack, double minX, double maxX, double minZ, double maxZ, double y) {
|
private static void renderHorizontalQuad(MatrixStack stack, double minX, double maxX, double minZ, double maxZ, double y) {
|
||||||
if (y != 0) {
|
if (y != 0) {
|
||||||
Matrix4f matrix4f = stack.getLast().getPositionMatrix();
|
Matrix4f matrix4f = stack.getLast().getMatrix();
|
||||||
buffer.begin(GL_LINE_LOOP, DefaultVertexFormats.POSITION);
|
buffer.begin(GL_LINE_LOOP, DefaultVertexFormats.POSITION);
|
||||||
buffer.pos(matrix4f, (float) minX, (float) y, (float) minZ).endVertex();
|
buffer.pos(matrix4f, (float) minX, (float) y, (float) minZ).endVertex();
|
||||||
buffer.pos(matrix4f, (float) maxX, (float) y, (float) minZ).endVertex();
|
buffer.pos(matrix4f, (float) maxX, (float) y, (float) minZ).endVertex();
|
||||||
|
|||||||
Reference in New Issue
Block a user