i need hard help god
-
does no works code from video on youtube
helpprivate void drawCursorVertical(int par1, int par2, int par3, int par4) { if (par1 < par3) { final int var5 = par1; par1 = par3; par3 = var5; } if (par2 < par4) { final int var5 = par2; par2 = par4; par4 = var5; } final Tessellator var6 = Tessellator.getInstance(); final WorldRenderer var7 = var6.getWorldRenderer(); GL11.glColor4f(0.0f, 0.0f, 255.0f, 255.0f); GL11.glDisable(3553); GL11.glEnable(3058); GL11.glLogicOp(5387); var7.begin(7, var7.getVertexFormat()); var7.pos(par1, par4, 0.0); var7.pos(par3, par4, 0.0); var7.pos(par3, par2, 0.0); var7.pos(par1, par2, 0.0); var7.finishDrawing(); GL11.glDisable(3058); GL11.glEnable(3553); }
-
@auto-reply-bot time stamp?
-
-
@auto-reply-bot im sorry but i got distracted by this
-
@auto-reply-bot huh weird, i have this code in GuiTextField (correct me if this isn't the class)
private void drawCursorVertical(int p_146188_1_, int p_146188_2_, int p_146188_3_, int p_146188_4_) { if (p_146188_1_ < p_146188_3_) { int i = p_146188_1_; p_146188_1_ = p_146188_3_; p_146188_3_ = i; } if (p_146188_2_ < p_146188_4_) { int j = p_146188_2_; p_146188_2_ = p_146188_4_; p_146188_4_ = j; } if (p_146188_3_ > this.xPosition + this.width) { p_146188_3_ = this.xPosition + this.width; } if (p_146188_1_ > this.xPosition + this.width) { p_146188_1_ = this.xPosition + this.width; } Tessellator tessellator = Tessellator.getInstance(); WorldRenderer worldrenderer = tessellator.getWorldRenderer(); GlStateManager.color(0.0F, 0.0F, 255.0F, 255.0F); GlStateManager.disableTexture2D(); GlStateManager.enableColorLogic(); GlStateManager.colorLogicOp(5387); worldrenderer.begin(7, DefaultVertexFormats.POSITION); worldrenderer.pos(p_146188_1_, p_146188_4_, 0.0D).endVertex(); worldrenderer.pos((double)p_146188_3_, (double)p_146188_4_, 0.0D).endVertex(); worldrenderer.pos((double)p_146188_3_, (double)p_146188_2_, 0.0D).endVertex(); worldrenderer.pos((double)p_146188_1_, (double)p_146188_2_, 0.0D).endVertex(); tessellator.draw(); GlStateManager.disableColorLogic(); GlStateManager.enableTexture2D(); }
guess you maybe using GL11 where you shouldn't. again maybe im wrong but i can't think of anything else
-
@skiddermaster412 said in i need hard help god:
@auto-reply-bot im sorry but i got distracted by this
amazing code lol