Skip to content

Commit 5cad776

Browse files
Update to 1.16.2
1 parent 11d4cfc commit 5cad776

File tree

4 files changed

+18
-9
lines changed

4 files changed

+18
-9
lines changed

build.gradle

+4-4
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ apply plugin: 'net.minecraftforge.gradle'
1313
apply plugin: 'eclipse'
1414
apply plugin: 'maven-publish'
1515

16-
version = '2.2.9'
16+
version = '2.3.0'
1717
group = 'wafflestomper' // http://maven.apache.org/guides/mini/guide-naming-conventions.html
18-
archivesBaseName = '1.16.4-Ghostwriter'
18+
archivesBaseName = '1.16.2-Ghostwriter'
1919

2020
sourceCompatibility = targetCompatibility = compileJava.sourceCompatibility = compileJava.targetCompatibility = '1.8' // Need this here so eclipse task generates correctly.
2121

@@ -26,7 +26,7 @@ minecraft {
2626
// stable_# Stables are built at the discretion of the MCP team.
2727
// Use non-default mappings at your own risk. they may not always work.
2828
// Simply re-run your setup task after changing the mappings to update your workspace.
29-
mappings channel: 'snapshot', version: '20210309-1.16.4'
29+
mappings channel: 'snapshot', version: '20200916-1.16.2'
3030
// makeObfSourceJar = false // an Srg named sources jar is made by default. uncomment this to disable.
3131

3232
accessTransformer = file('src/main/resources/META-INF/accesstransformer.cfg')
@@ -90,7 +90,7 @@ dependencies {
9090
// Specify the version of Minecraft to use, If this is any group other then 'net.minecraft' it is assumed
9191
// that the dep is a ForgeGradle 'patcher' dependency. And it's patches will be applied.
9292
// The userdev artifact is a special name and will get all sorts of transformations applied to it.
93-
minecraft 'net.minecraftforge:forge:1.16.4-35.1.4'
93+
minecraft 'net.minecraftforge:forge:1.16.2-33.0.61'
9494

9595
// You may put jars on which you depend on in ./libs or you may define them like so..
9696
// compile "some.group:artifact:version:classifier"

src/main/java/wafflestomper/ghostwriter/gui/widget/FileSelectionList.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,8 @@ public void render(MatrixStack matrixStack, int p_render_1_, int p_render_2_, in
121121
}
122122

123123
// Draw the trimmed filename in the slot
124-
String s = this.mc.fontRenderer.trimStringToWidth(this.path.getName(), slotWidth);
124+
// func_238412_a_ is trimStringToWidth
125+
String s = this.mc.fontRenderer.func_238412_a_(this.path.getName(), slotWidth);
125126
this.mc.fontRenderer.drawString(matrixStack, s, (float) (slotX), (float) (p_render_2_ + 1), color);
126127

127128
// Set up the hover text if the mouse is hovering over this slot

src/main/java/wafflestomper/ghostwriter/gui/widget/SelectableFilenameField.java

+9-1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,14 @@ public SelectableFilenameField(FontRenderer fontRenderer, int x, int y, int widt
2020
}
2121

2222

23+
/**
24+
* 1.16.2 patch because Widget.getHeight() was removed
25+
*/
26+
public int getHeight(){
27+
return this.height;
28+
}
29+
30+
2331
public void toggleExtensionModifications() {
2432
this.allowExtensionModifications = !this.allowExtensionModifications;
2533
// Ensure cursor is in a valid position
@@ -63,7 +71,7 @@ public void highlightFilename() {
6371
* to type upper case text would erroneously select text
6472
*/
6573
public void updateShiftKeyStatus() {
66-
this.isShiftDown = Screen.hasShiftDown();
74+
this.field_212956_h = Screen.hasShiftDown();
6775
}
6876

6977

src/main/resources/META-INF/mods.toml

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
modLoader="javafml"
33

44
# A version range to match for said mod loader - for regular FML @Mod it will be the forge version
5-
loaderVersion="[35,)" # 35 = 1.16.4
5+
loaderVersion="[33,)" # 35 = 1.16.2
66

77
# The license for you mod. This is mandatory metadata and allows for easier comprehension of your redistributive properties.
88
license="GNU GPL v3"
@@ -27,12 +27,12 @@ issueTrackerURL="https://github.com/waffle-stomper/Ghostwriter/issues"
2727
[[dependencies.ghostwriter]]
2828
modId="forge"
2929
mandatory=true
30-
versionRange="[35,)"
30+
versionRange="[33,)"
3131
ordering="NONE"
3232
side="CLIENT"
3333
[[dependencies.ghostwriter]]
3434
modId="minecraft"
3535
mandatory=true
36-
versionRange="[1.16.4,1.17]"
36+
versionRange="[1.16.2,1.17]"
3737
ordering="NONE"
3838
side="CLIENT"

0 commit comments

Comments
 (0)