Skip to content

Commit b5d8af8

Browse files
committed
Initial commit
0 parents  commit b5d8af8

File tree

16 files changed

+522
-0
lines changed

16 files changed

+522
-0
lines changed

.gitignore

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# eclipse
2+
bin
3+
*.launch
4+
.settings
5+
.metadata
6+
.classpath
7+
.project
8+
9+
# idea
10+
out
11+
*.ipr
12+
*.iws
13+
*.iml
14+
.idea
15+
16+
# gradle
17+
build
18+
.gradle
19+
20+
# other
21+
eclipse
22+
rundir
23+
.DS_Store
24+
libs
25+
libs_bak
26+
ref
27+
ref_bak
28+
hold_intergration
29+
hold_intergration_bak

1.7.10/build.gradle

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
buildscript {
2+
buildscript {
3+
repositories {
4+
jcenter()
5+
maven {
6+
name = "forge"
7+
url = "http://files.minecraftforge.net/maven"
8+
}
9+
}
10+
}
11+
dependencies {
12+
classpath 'net.minecraftforge.gradle:ForgeGradle:1.2-SNAPSHOT'
13+
}
14+
}
15+
16+
apply plugin: 'forge'
17+
18+
sourceCompatibility = targetCompatibility = JavaVersion.VERSION_1_8
19+
compileJava {
20+
sourceCompatibility = targetCompatibility = JavaVersion.VERSION_1_8
21+
}
22+
23+
version = "${mod_version}"
24+
group = "${group_path}"
25+
archivesBaseName = "${filename_base}"
26+
27+
minecraft {
28+
version = "${minecraft_version}-${forge_version}-${minecraft_version}"
29+
runDir = "../rundir"
30+
}
31+
32+
processResources {
33+
// this will ensure that this task is redone when the versions change.
34+
inputs.property "version", project.version
35+
// inputs.property "mc_version", project.minecraft.version
36+
37+
// replace stuff in mcmod.info, nothing else
38+
from(sourceSets.main.resources.srcDirs) {
39+
include 'mcmod.info'
40+
41+
// replace version and mcversion
42+
expand 'version':project.version//, 'mc_version':project.minecraft.version
43+
}
44+
45+
// copy everything else, thats not the mcmod.info
46+
from(sourceSets.main.resources.srcDirs) {
47+
exclude 'mcmod.info'
48+
}
49+
}

1.7.10/gradle.properties

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
mod_version = 1.0
2+
group_path = com.jdlogic.splashfix
3+
filename_base = Splash_Fix_Legacy
4+
5+
minecraft_version = 1.7.10
6+
forge_version = 10.13.4.1614
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
package com.jdlogic.splashfix;
2+
3+
import cpw.mods.fml.common.Mod;
4+
import cpw.mods.fml.common.event.FMLPreInitializationEvent;
5+
import cpw.mods.fml.common.eventhandler.EventPriority;
6+
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
7+
import net.minecraftforge.client.event.TextureStitchEvent;
8+
import net.minecraftforge.common.MinecraftForge;
9+
import org.lwjgl.opengl.GL11;
10+
11+
@Mod(modid = SplashFixLegacy.MOD_ID, name = SplashFixLegacy.MOD_NAME, version = SplashFixLegacy.MOD_VERSION,
12+
acceptedMinecraftVersions = SplashFixLegacy.MC_VERSION)
13+
public class SplashFixLegacy
14+
{
15+
public static final String MOD_ID = "splashfix";
16+
public static final String MOD_NAME = "Splash Fix";
17+
public static final String MOD_VERSION = "1.0";
18+
public static final String MC_VERSION = "[1.7.10,1.8)";
19+
20+
@Mod.EventHandler
21+
public static void preInit(FMLPreInitializationEvent event)
22+
{
23+
MinecraftForge.EVENT_BUS.register(new EventHandler());
24+
}
25+
26+
public static class EventHandler
27+
{
28+
@SubscribeEvent(priority = EventPriority.HIGHEST)
29+
public void onTextureStitch(TextureStitchEvent.Post event)
30+
{
31+
GL11.glFlush();
32+
}
33+
}
34+
}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
[
2+
{
3+
"modid": "splashfix",
4+
"name": "Splash Fix",
5+
"version": "${version}",
6+
"mcversion": "",
7+
"description": "",
8+
"credits": "",
9+
"url": "",
10+
"updateUrl": "",
11+
"authorList": ["JDLogic"],
12+
"logoFile": "",
13+
"screenshots": [],
14+
"parent":"",
15+
"dependencies": []
16+
}
17+
]

1.8-1.12.x/build.gradle

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
buildscript {
2+
buildscript {
3+
repositories {
4+
jcenter()
5+
maven {
6+
name = "forge"
7+
url = "http://files.minecraftforge.net/maven"
8+
}
9+
}
10+
}
11+
dependencies {
12+
classpath 'net.minecraftforge.gradle:ForgeGradle:2.3-SNAPSHOT'
13+
}
14+
}
15+
16+
apply plugin: 'net.minecraftforge.gradle.forge'
17+
18+
sourceCompatibility = targetCompatibility = JavaVersion.VERSION_1_8
19+
compileJava {
20+
sourceCompatibility = targetCompatibility = JavaVersion.VERSION_1_8
21+
}
22+
23+
version = "${mod_version}"
24+
group = "${group_path}"
25+
archivesBaseName = "${filename_base}"
26+
27+
minecraft {
28+
version = "${minecraft_version}-${forge_version}"
29+
runDir = "../rundir"
30+
31+
mappings = "${mappings_version}"
32+
makeObfSourceJar = false
33+
34+
replace "@VERSION@", project.version
35+
replaceIn "SplashFix.java"
36+
}
37+
38+
jar {
39+
exclude('META-INF/*')
40+
from(zipTree('../1.7.10/build/libs/Splash_Fix_Legacy-' + "${mod_version}" + '.jar')) {
41+
include('**/*.class')
42+
}
43+
}
44+
45+
processResources {
46+
// this will ensure that this task is redone when the versions change.
47+
inputs.property "version", project.version
48+
// inputs.property "mc_version", project.minecraft.version
49+
50+
// replace stuff in mcmod.info, nothing else
51+
from(sourceSets.main.resources.srcDirs) {
52+
include 'mcmod.info'
53+
54+
// replace version and mcversion
55+
expand 'version':project.version//, 'mc_version':project.minecraft.version
56+
}
57+
58+
// copy everything else, thats not the mcmod.info
59+
from(sourceSets.main.resources.srcDirs) {
60+
exclude 'mcmod.info'
61+
}
62+
}

1.8-1.12.x/gradle.properties

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
mod_version = 1.0
2+
group_path = com.jdlogic.splashfix
3+
filename_base = Splash_Fix
4+
5+
minecraft_version = 1.12.2
6+
forge_version = 14.23.0.2486
7+
mappings_version = snapshot_20170811
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
package com.jdlogic.splashfix;
2+
3+
import net.minecraftforge.client.event.TextureStitchEvent;
4+
import net.minecraftforge.common.MinecraftForge;
5+
import net.minecraftforge.fml.common.Mod;
6+
import net.minecraftforge.fml.common.event.FMLPreInitializationEvent;
7+
import net.minecraftforge.fml.common.eventhandler.EventPriority;
8+
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;
9+
import org.lwjgl.opengl.GL11;
10+
11+
@Mod(modid = SplashFix.MOD_ID, name = SplashFix.MOD_NAME, version = SplashFix.MOD_VERSION,
12+
acceptedMinecraftVersions = SplashFix.MC_VERSION)
13+
public class SplashFix
14+
{
15+
public static final String MOD_ID = "splashfix";
16+
public static final String MOD_NAME = "Splash Fix";
17+
public static final String MOD_VERSION = "@VERSION@";
18+
public static final String MC_VERSION = "[1.8,1.13)";
19+
20+
@Mod.EventHandler
21+
public static void preInit(FMLPreInitializationEvent event)
22+
{
23+
MinecraftForge.EVENT_BUS.register(new EventHandler());
24+
}
25+
26+
public static class EventHandler
27+
{
28+
@SubscribeEvent(priority = EventPriority.HIGHEST)
29+
public void onTextureStitch(TextureStitchEvent.Post event)
30+
{
31+
GL11.glFlush();
32+
}
33+
}
34+
}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
[
2+
{
3+
"modid": "splashfix",
4+
"name": "Splash Fix",
5+
"version": "${version}",
6+
"mcversion": "",
7+
"description": "",
8+
"credits": "",
9+
"url": "",
10+
"updateUrl": "",
11+
"authorList": ["JDLogic"],
12+
"logoFile": "",
13+
"screenshots": [],
14+
"parent":"",
15+
"dependencies": []
16+
}
17+
]

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
A small mod to fix the missing texture issue that occurs on some systems when the MinecraftForge splash screen is
2+
enabled. A ready to use jar file can be found on the release page and is currently compatible with MC 1.7.10-1.12.x
3+
(yes all in one file).

0 commit comments

Comments
 (0)