mirror of
https://github.com/GTNewHorizons/EnderCore.git
synced 2026-11-21 12:32:15 +00:00
Remove forced glColor call in IWidgetMapImpl
This commit is contained in:
1 parent
90135339b0
commit
4b845b66a4
2 files changed
+5
-4
No files matched your search
@@ -1,5 +1,8 @@
|
||||
package com.enderio.core.api.client.render;
|
||||
|
||||
import javax.annotation.Nullable;
|
||||
|
||||
|
||||
public interface IWidgetIcon {
|
||||
|
||||
int getX();
|
||||
@@ -10,6 +13,7 @@ public interface IWidgetIcon {
|
||||
|
||||
int getHeight();
|
||||
|
||||
@Nullable
|
||||
IWidgetIcon getOverlay();
|
||||
|
||||
IWidgetMap getMap();
|
||||
|
||||
@@ -4,8 +4,6 @@ import lombok.RequiredArgsConstructor;
|
||||
import net.minecraft.client.renderer.Tessellator;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
|
||||
import org.lwjgl.opengl.GL11;
|
||||
|
||||
import com.enderio.core.client.render.RenderUtil;
|
||||
|
||||
public interface IWidgetMap {
|
||||
@@ -55,8 +53,7 @@ public interface IWidgetMap {
|
||||
|
||||
@Override
|
||||
public void render(IWidgetIcon widget, double x, double y, double width, double height, double zLevel, boolean doDraw, boolean flipY) {
|
||||
GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
|
||||
|
||||
|
||||
Tessellator tessellator = Tessellator.instance;
|
||||
if (doDraw) {
|
||||
RenderUtil.bindTexture(getTexture());
|
||||
|
||||
Reference in new issue
Block a user