File tree Expand file tree Collapse file tree 6 files changed +26
-24
lines changed Expand file tree Collapse file tree 6 files changed +26
-24
lines changed Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ processResources
61
61
{
62
62
// replace stuff in mcmod.info, nothing else
63
63
from(sourceSets. main. resources. srcDirs) {
64
- include ' mcmod/ info'
64
+ include ' mcmod. info'
65
65
66
66
// replace version and mcversion
67
67
expand ' version' :project. version, ' mcversion' :project. minecraft. version
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 9
9
import java .util .logging .Level ;
10
10
11
11
import net .minecraft .command .CommandBase ;
12
+ import net .minecraft .command .ICommand ;
12
13
import net .minecraft .command .ICommandSender ;
13
14
import net .minecraft .entity .player .EntityPlayer ;
14
15
import net .minecraft .item .Item ;
@@ -317,6 +318,6 @@ public static String getProperName(String modid)
317
318
@ Override
318
319
public int compareTo (Object arg0 )
319
320
{
320
- return 0 ; // wat
321
+ return this . compareTo (( ICommand ) arg0 );
321
322
}
322
323
}
Original file line number Diff line number Diff line change 3
3
import java .io .File ;
4
4
import java .io .FileInputStream ;
5
5
import java .io .FileNotFoundException ;
6
+ import java .io .FileWriter ;
6
7
import java .io .IOException ;
7
8
import java .io .InputStream ;
8
9
import java .util .ArrayList ;
@@ -184,7 +185,26 @@ public static InputStream getGuideText()
184
185
185
186
public static InputStream getChangelogText () throws FileNotFoundException
186
187
{
188
+ File changelog = new File (ConfigurationHandler .cfg .getParent () + "/changelog.txt" );
189
+
190
+ if (!changelog .exists ())
191
+ {
192
+ FileWriter fw ;
193
+ try
194
+ {
195
+ changelog .createNewFile ();
196
+ fw = new FileWriter (changelog );
197
+ fw .write ("Default Changelog, please make sure the correct changelog exists in the TPPI directory before launching next time!" );
198
+ fw .flush ();
199
+ fw .close ();
200
+ } catch (IOException e1 ) {
201
+ TPPITweaks .logger .severe ("Could not create default changelog!" );
202
+ e1 .printStackTrace ();
203
+ }
204
+ }
205
+
187
206
changelogText = new FileInputStream (new File (ConfigurationHandler .cfg .getParent () + "/changelog.txt" ));
207
+
188
208
return changelogText ;
189
209
}
190
210
Original file line number Diff line number Diff line change @@ -25,6 +25,8 @@ public static ArrayList<String> parseFileMain(InputStream file)
25
25
{
26
26
ArrayList <String > bookText = new ArrayList <String >();
27
27
useableLines .clear ();
28
+
29
+ if (file == null ) return new ArrayList <String >();
28
30
29
31
Scanner scanner ;
30
32
scanner = new Scanner (file );
Original file line number Diff line number Diff line change 2
2
"modid" : " TPPITweaks" ,
3
3
"name" : " TPPI Tweaks" ,
4
4
"description" : " Does some useful stuff for the TPPI modpack." ,
5
- "version" : " 0.6.2 " ,
5
+ "version" : " 1.0.0 " ,
6
6
"mcversion" : " 1.6.4" ,
7
7
"authors" : [ " The TPPI Team" ],
8
8
"requiredMods" : [ " Forge" ]
You can’t perform that action at this time.
0 commit comments