mirror of
https://github.com/chylex/Minecraft-Window-Title.git
synced 2025-10-15 15:39:35 +02:00
Compare commits
2 Commits
50d77446f5
...
b17a1cb5cc
Author | SHA1 | Date | |
---|---|---|---|
b17a1cb5cc
|
|||
4aa5d7d945
|
@@ -3,17 +3,17 @@ modId=customwindowtitle
|
||||
modName=Custom Window Title
|
||||
modDescription=Customize window title and icon.
|
||||
modAuthor=chylex
|
||||
modVersion=1.4.2
|
||||
modVersion=1.4.3
|
||||
modLicense=Unlicense
|
||||
modSourcesURL=https://github.com/chylex/Minecraft-Window-Title
|
||||
modIssuesURL=https://github.com/chylex/Minecraft-Window-Title/issues
|
||||
modSides=client
|
||||
|
||||
# Dependencies
|
||||
minecraftVersion=1.21.6
|
||||
neoForgeVersion=21.6.20-beta
|
||||
neoModDevVersion=2.0.103
|
||||
fabricVersion=0.16.14
|
||||
minecraftVersion=1.21.9
|
||||
neoForgeVersion=21.9.2-beta
|
||||
neoModDevVersion=2.0.110
|
||||
fabricVersion=0.17.2
|
||||
loomVersion=1.10
|
||||
mixinVersion=0.12.5+mixin.0.8.5
|
||||
|
||||
@@ -23,9 +23,9 @@ mixinVersion=0.12.5+mixin.0.8.5
|
||||
# https://github.com/FabricMC/fabric-loom/releases
|
||||
|
||||
# Constraints
|
||||
minimumMinecraftVersion=1.21.6
|
||||
minimumNeoForgeVersion=21.6.0-beta
|
||||
minimumFabricVersion=0.12.3
|
||||
minimumMinecraftVersion=1.21.9
|
||||
minimumNeoForgeVersion=21.9.0-beta
|
||||
minimumFabricVersion=0.15.0
|
||||
|
||||
# Gradle
|
||||
org.gradle.jvmargs=-Xmx3G
|
||||
|
@@ -19,7 +19,7 @@ public final class IconChanger {
|
||||
private IconChanger() {}
|
||||
|
||||
public static void setIcon(Path iconPath) {
|
||||
long windowHandle = Minecraft.getInstance().getWindow().getWindow();
|
||||
long windowHandle = Minecraft.getInstance().getWindow().handle();
|
||||
setWindowIcon(windowHandle, iconPath);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user