diff --git a/src/main/java/ru/dbotthepony/mc/otm/screen/MatteryScreen.java b/src/main/java/ru/dbotthepony/mc/otm/screen/MatteryScreen.java index a32e8960f..97c1d0038 100644 --- a/src/main/java/ru/dbotthepony/mc/otm/screen/MatteryScreen.java +++ b/src/main/java/ru/dbotthepony/mc/otm/screen/MatteryScreen.java @@ -455,7 +455,7 @@ public abstract class MatteryScreen extends AbstractConta } } - float depth = -400f; + float depth = -900f; for (var panel : panels) { panel.set3DDepth(depth); diff --git a/src/main/java/ru/dbotthepony/mc/otm/screen/panels/EditablePanel.java b/src/main/java/ru/dbotthepony/mc/otm/screen/panels/EditablePanel.java index 3deda98c9..036c37e9c 100644 --- a/src/main/java/ru/dbotthepony/mc/otm/screen/panels/EditablePanel.java +++ b/src/main/java/ru/dbotthepony/mc/otm/screen/panels/EditablePanel.java @@ -10,9 +10,6 @@ import javax.annotation.Nullable; import java.util.ArrayList; import java.util.List; -import static org.lwjgl.opengl.GL11.GL_ALWAYS; -import static org.lwjgl.opengl.GL11.GL_LESS; - /** * Superclass of all panels * This panel represent part of GMod's Panels API @@ -155,21 +152,8 @@ public class EditablePanel implements GuiEventListener { } stack.pushPose(); - - /*if (parent == null) { - RenderSystem.depthFunc(GL_ALWAYS); - RenderSystem.depthMask(true); - stack.translate(parent_x, parent_y, 0); - } else {*/ stack.translate(parent_x, parent_y, accumulated_depth); - //} - innerRender(stack, mouse_x, mouse_y, flag); - - /*if (parent == null) { - RenderSystem.depthFunc(GL_LESS); - }*/ - stack.popPose(); var most_depth = accumulated_depth;