Take 3
This commit is contained in:
@@ -15,14 +15,14 @@ class Bars {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fun bars() {
|
fun bars() {
|
||||||
if (MinecraftClient.getInstance().networkHandler?.serverInfo?.address == "dungeonfy.minehut.gg" ||
|
|
||||||
MinecraftClient.getInstance().networkHandler?.serverInfo?.address == "51.222.121.148:25599" ||
|
|
||||||
MinecraftClient.getInstance().networkHandler?.serverInfo?.address == "minehut.com" || // if you join minehut.com and type /join dungeonfy
|
|
||||||
MinecraftClient.getInstance().player?.name?.string == debugUser) {
|
|
||||||
HudRenderCallback.EVENT.register(HudRenderCallback { drawContext: DrawContext?, tickDelta: Float ->
|
HudRenderCallback.EVENT.register(HudRenderCallback { drawContext: DrawContext?, tickDelta: Float ->
|
||||||
val tessellator: Tessellator = Tessellator.getInstance()
|
val tessellator: Tessellator = Tessellator.getInstance()
|
||||||
val buffer: BufferBuilder = tessellator.buffer
|
val buffer: BufferBuilder = tessellator.buffer
|
||||||
val positionMatrix = drawContext?.matrices?.peek()?.positionMatrix
|
val positionMatrix = drawContext?.matrices?.peek()?.positionMatrix
|
||||||
|
if (MinecraftClient.getInstance().networkHandler?.serverInfo?.address == "dungeonfy.minehut.gg" ||
|
||||||
|
MinecraftClient.getInstance().networkHandler?.serverInfo?.address == "51.222.121.148:25599" ||
|
||||||
|
MinecraftClient.getInstance().networkHandler?.serverInfo?.address == "minehut.com" || // if you join minehut.com and type /join dungeonfy
|
||||||
|
MinecraftClient.getInstance().player?.name?.string == debugUser) {
|
||||||
if (barsToggle) {
|
if (barsToggle) {
|
||||||
buffer.begin(VertexFormat.DrawMode.QUADS, VertexFormats.POSITION_COLOR_TEXTURE)
|
buffer.begin(VertexFormat.DrawMode.QUADS, VertexFormats.POSITION_COLOR_TEXTURE)
|
||||||
buffer.vertex(positionMatrix, 20F, 20F, 0F).color(1f, 1f, 1f, 1f).texture(0f, 0f).next()
|
buffer.vertex(positionMatrix, 20F, 20F, 0F).color(1f, 1f, 1f, 1f).texture(0f, 0f).next()
|
||||||
@@ -36,7 +36,7 @@ class Bars {
|
|||||||
|
|
||||||
tessellator.draw()
|
tessellator.draw()
|
||||||
}
|
}
|
||||||
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user