Skip to content

Commit aa227f1

Browse files
committed
Beta 2.2.6.2545.1
-Fixed broken sprite tile rendering in 1.20.1
1 parent f157604 commit aa227f1

3 files changed

Lines changed: 8 additions & 2 deletions

File tree

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ publishMods {
249249

250250
def isFabric = loader == "fabric"
251251
displayName = "$mod_name [$modPlatformName] $project.version"
252-
type = STABLE
252+
type = BETA
253253
changelog = releaseChangelog()
254254
modLoaders.add(loader)
255255
if (isFabric) modLoaders.add "quilt"

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
org.gradle.jvmargs=-Xmx3072M
22

33
archives_base_name=FactoryAPI
4-
mod_version=2.2.6.2545.0
4+
mod_version=2.2.6.2545.1
55
mod_id=factory_api
66
mod_name=Factory API
77
mod_description=An API that is the basis for mods like Legacy4J, Factocrafty and Better Furnaces Reforged, that work on different mod loaders.

src/main/java/wily/factoryapi/base/client/FactoryGuiGraphics.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,9 +143,15 @@ default void blitTiledSprite(TextureAtlasSprite textureAtlasSprite, int i, int j
143143
BufferUploader.drawWithShader(bufferBuilder./*? if <1.20.5 {*/end/*?} else {*//*buildOrThrow*//*?}*/());
144144
}
145145

146+
//? if <=1.20.1 {
146147
private void addBlitSpriteQuad(TextureAtlasSprite textureAtlasSprite, BufferBuilder bufferBuilder, Matrix4f matrix4f, int i, int j, int k, int l, int m, int n, int o, int p, int q) {
148+
addBlitQuad(bufferBuilder, matrix4f, m, m + p, n, n + q, o, textureAtlasSprite.getU((float)k / (float)i * 16), textureAtlasSprite.getU((float)(k + p) / (float)i * 16), textureAtlasSprite.getV((float)l / (float)j * 16), textureAtlasSprite.getV((float)(l + q) / (float)j * 16));
149+
}
150+
//?} else {
151+
/*private void addBlitSpriteQuad(TextureAtlasSprite textureAtlasSprite, BufferBuilder bufferBuilder, Matrix4f matrix4f, int i, int j, int k, int l, int m, int n, int o, int p, int q) {
147152
addBlitQuad(bufferBuilder, matrix4f, m, m + p, n, n + q, o, textureAtlasSprite.getU((float)k / (float)i), textureAtlasSprite.getU((float)(k + p) / (float)i), textureAtlasSprite.getV((float)l / (float)j), textureAtlasSprite.getV((float)(l + q) / (float)j));
148153
}
154+
*///?}
149155

150156
private void addBlitQuad(BufferBuilder bufferBuilder, Matrix4f matrix4f, int i, int j, int k, int l, int m, float f, float g, float h, float n) {
151157
//? if <1.20.5 {

0 commit comments

Comments
 (0)