Fix crash on load bars without Sodium patch
@@ -14,7 +14,7 @@ loader_version=0.15.11
|
|||||||
fabric_kotlin_version=1.11.0+kotlin.2.0.0
|
fabric_kotlin_version=1.11.0+kotlin.2.0.0
|
||||||
|
|
||||||
# Mod Properties
|
# Mod Properties
|
||||||
mod_version=0.1.2
|
mod_version=0.1.3
|
||||||
maven_group=chickenmanfy.scify
|
maven_group=chickenmanfy.scify
|
||||||
archives_base_name=scify
|
archives_base_name=scify
|
||||||
|
|
||||||
|
|||||||
@@ -7,8 +7,13 @@ object BridgeMixins {
|
|||||||
fun getNum0(): Int {
|
fun getNum0(): Int {
|
||||||
return num0
|
return num0
|
||||||
}
|
}
|
||||||
fun getNum1(): Int {
|
|
||||||
return num1
|
fun getStrNum0(): String {
|
||||||
|
return num0.toString()
|
||||||
|
}
|
||||||
|
fun getStrNum1(): String {
|
||||||
|
val strNum1 = num1 + 20
|
||||||
|
return strNum1.toString()
|
||||||
}
|
}
|
||||||
|
|
||||||
fun setNum0(number: Int) {
|
fun setNum0(number: Int) {
|
||||||
|
|||||||
@@ -28,12 +28,8 @@ class Bars {
|
|||||||
buffer.vertex(positionMatrix, 280F, 460F, 0F).color(1f, 1f, 1f, 1f).texture(1f, 0f).next()
|
buffer.vertex(positionMatrix, 280F, 460F, 0F).color(1f, 1f, 1f, 1f).texture(1f, 0f).next()
|
||||||
|
|
||||||
RenderSystem.setShader { GameRenderer.getPositionColorTexProgram() }
|
RenderSystem.setShader { GameRenderer.getPositionColorTexProgram() }
|
||||||
if (BridgeMixins.getNum1() < 10) {
|
|
||||||
RenderSystem.setShaderTexture(0, Identifier("scify", "HealthMana/Mana/Vials_000${BridgeMixins.getNum1() + 20}.png"))
|
RenderSystem.setShaderTexture(0, Identifier("scify", "healthmana/mana/vials_00${BridgeMixins.getStrNum1()}.png"))
|
||||||
}
|
|
||||||
else {
|
|
||||||
RenderSystem.setShaderTexture(0, Identifier("scify", "HealthMana/Mana/Vials_00${BridgeMixins.getNum1() + 20}.png"))
|
|
||||||
}
|
|
||||||
RenderSystem.setShaderColor(1f, 1f, 1f, 1f)
|
RenderSystem.setShaderColor(1f, 1f, 1f, 1f)
|
||||||
|
|
||||||
tessellator.draw()
|
tessellator.draw()
|
||||||
@@ -46,9 +42,9 @@ class Bars {
|
|||||||
|
|
||||||
RenderSystem.setShader { GameRenderer.getPositionColorTexProgram() }
|
RenderSystem.setShader { GameRenderer.getPositionColorTexProgram() }
|
||||||
if (BridgeMixins.getNum0() < 10) {
|
if (BridgeMixins.getNum0() < 10) {
|
||||||
RenderSystem.setShaderTexture(0, Identifier("scify", "./HealthMana/Health/Vials_000${BridgeMixins.getNum0()}.png"))
|
RenderSystem.setShaderTexture(0, Identifier("scify", "healthmana/health/vials_000${BridgeMixins.getStrNum0()}.png"))
|
||||||
} else {
|
} else {
|
||||||
RenderSystem.setShaderTexture(0, Identifier("scify", "./HealthMana/Health/Vials_00${BridgeMixins.getNum0()}.png"))
|
RenderSystem.setShaderTexture(0, Identifier("scify", "healthmana/health/vials_00${BridgeMixins.getStrNum0()}.png"))
|
||||||
}
|
}
|
||||||
RenderSystem.setShaderColor(1f, 1f, 1f, 1f)
|
RenderSystem.setShaderColor(1f, 1f, 1f, 1f)
|
||||||
|
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import net.minecraft.client.MinecraftClient
|
|||||||
import net.minecraft.client.gui.DrawContext
|
import net.minecraft.client.gui.DrawContext
|
||||||
|
|
||||||
var watermarkToggle = true
|
var watermarkToggle = true
|
||||||
class Watermark() {
|
class Watermark {
|
||||||
fun toggleWaterMark() {
|
fun toggleWaterMark() {
|
||||||
watermarkToggle = !watermarkToggle
|
watermarkToggle = !watermarkToggle
|
||||||
}
|
}
|
||||||
@@ -18,7 +18,7 @@ class Watermark() {
|
|||||||
MinecraftClient.getInstance().networkHandler?.serverInfo?.address == "minehut.com") {
|
MinecraftClient.getInstance().networkHandler?.serverInfo?.address == "minehut.com") {
|
||||||
if (watermarkToggle) {
|
if (watermarkToggle) {
|
||||||
val minecraftClient = MinecraftClient.getInstance()
|
val minecraftClient = MinecraftClient.getInstance()
|
||||||
drawContext?.drawTextWithShadow(minecraftClient.textRenderer,"§nSciFy v0.1.2",minecraftClient.window.scaledWidth - minecraftClient.textRenderer.getWidth("SciFy v0.1.2") - 5, minecraftClient.window.scaledHeight - minecraftClient.textRenderer.fontHeight - 5, 0xff00ff)
|
drawContext?.drawTextWithShadow(minecraftClient.textRenderer,"§nSciFy v0.1.3",minecraftClient.window.scaledWidth - minecraftClient.textRenderer.getWidth("SciFy v0.1.3") - 5, minecraftClient.window.scaledHeight - minecraftClient.textRenderer.fontHeight - 5, 0xff00ff)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 111 B After Width: | Height: | Size: 111 B |
|
Before Width: | Height: | Size: 122 B After Width: | Height: | Size: 122 B |
|
Before Width: | Height: | Size: 126 B After Width: | Height: | Size: 126 B |
|
Before Width: | Height: | Size: 130 B After Width: | Height: | Size: 130 B |
|
Before Width: | Height: | Size: 124 B After Width: | Height: | Size: 124 B |
|
Before Width: | Height: | Size: 132 B After Width: | Height: | Size: 132 B |
|
Before Width: | Height: | Size: 129 B After Width: | Height: | Size: 129 B |
|
Before Width: | Height: | Size: 128 B After Width: | Height: | Size: 128 B |
|
Before Width: | Height: | Size: 125 B After Width: | Height: | Size: 125 B |
|
Before Width: | Height: | Size: 124 B After Width: | Height: | Size: 124 B |
|
Before Width: | Height: | Size: 129 B After Width: | Height: | Size: 129 B |
|
Before Width: | Height: | Size: 123 B After Width: | Height: | Size: 123 B |
|
Before Width: | Height: | Size: 129 B After Width: | Height: | Size: 129 B |
|
Before Width: | Height: | Size: 130 B After Width: | Height: | Size: 130 B |
|
Before Width: | Height: | Size: 133 B After Width: | Height: | Size: 133 B |
|
Before Width: | Height: | Size: 126 B After Width: | Height: | Size: 126 B |
|
Before Width: | Height: | Size: 125 B After Width: | Height: | Size: 125 B |
|
Before Width: | Height: | Size: 133 B After Width: | Height: | Size: 133 B |
|
Before Width: | Height: | Size: 121 B After Width: | Height: | Size: 121 B |
|
Before Width: | Height: | Size: 123 B After Width: | Height: | Size: 123 B |
|
Before Width: | Height: | Size: 111 B After Width: | Height: | Size: 111 B |
|
Before Width: | Height: | Size: 124 B After Width: | Height: | Size: 124 B |
|
Before Width: | Height: | Size: 127 B After Width: | Height: | Size: 127 B |
|
Before Width: | Height: | Size: 132 B After Width: | Height: | Size: 132 B |
|
Before Width: | Height: | Size: 126 B After Width: | Height: | Size: 126 B |
|
Before Width: | Height: | Size: 134 B After Width: | Height: | Size: 134 B |
|
Before Width: | Height: | Size: 134 B After Width: | Height: | Size: 134 B |
|
Before Width: | Height: | Size: 130 B After Width: | Height: | Size: 130 B |
|
Before Width: | Height: | Size: 127 B After Width: | Height: | Size: 127 B |
|
Before Width: | Height: | Size: 126 B After Width: | Height: | Size: 126 B |
|
Before Width: | Height: | Size: 131 B After Width: | Height: | Size: 131 B |
|
Before Width: | Height: | Size: 125 B After Width: | Height: | Size: 125 B |
|
Before Width: | Height: | Size: 131 B After Width: | Height: | Size: 131 B |
|
Before Width: | Height: | Size: 132 B After Width: | Height: | Size: 132 B |
|
Before Width: | Height: | Size: 135 B After Width: | Height: | Size: 135 B |
|
Before Width: | Height: | Size: 127 B After Width: | Height: | Size: 127 B |
|
Before Width: | Height: | Size: 128 B After Width: | Height: | Size: 128 B |
|
Before Width: | Height: | Size: 136 B After Width: | Height: | Size: 136 B |
|
Before Width: | Height: | Size: 124 B After Width: | Height: | Size: 124 B |
|
Before Width: | Height: | Size: 126 B After Width: | Height: | Size: 126 B |