Browse Source

Minor Bugfix

Gregorius Techneticies 3 months ago
parent
commit
07f1df1598
Signed by: Gregorius Techneticies <gregoriustech@gmail.com> GPG Key ID: 1B693EA14F2FD70F
1 changed files with 7 additions and 6 deletions
  1. 7
    6
      src/main/java/gregtech/GT6_Main.java

+ 7
- 6
src/main/java/gregtech/GT6_Main.java View File

@@ -625,10 +625,11 @@ public class GT6_Main extends Abstract_Mod {
625 625
 			for (ItemStackContainer tStack : OP.ore.mRegisteredItems) CR.remove(tStack.toStack(), tPyrotheum);
626 626
 		}
627 627
 	}
628
-
628
+	
629 629
 	public boolean mDisableIC2Ores = T;
630
-
630
+	
631 631
 	@Override
632
+	@SuppressWarnings({ "unchecked", "rawtypes" })
632 633
 	public void onModServerStopping2(FMLServerStoppingEvent aEvent) {
633 634
 		try {
634 635
 		if (D1 || ORD != System.out) {
@@ -642,10 +643,10 @@ public class GT6_Main extends Abstract_Mod {
642 643
 			ORD.println("ItemRegistry:");
643 644
 			ORD.println("*"); ORD.println("*"); ORD.println("*");
644 645
 			
645
-			List<String> tList = UT.Code.getWithoutNulls((String[])Item.itemRegistry.getKeys().toArray());
646
+			List tList = UT.Code.getWithoutNulls(Item.itemRegistry.getKeys().toArray(ZL_STRING));
646 647
 			
647 648
 			Collections.sort(tList);
648
-			for (String tItemName : tList) ORD.println(tItemName);
649
+			for (Object tItemName : tList) ORD.println(tItemName);
649 650
 			
650 651
 			ORD.println("*");
651 652
 			ORD.println("OreDictionary:");
@@ -653,7 +654,7 @@ public class GT6_Main extends Abstract_Mod {
653 654
 			
654 655
 			tList = UT.Code.getWithoutNulls(OreDictionary.getOreNames());
655 656
 			Collections.sort(tList);
656
-			for (String tOreName : tList) {
657
+			for (Object tOreName : tList) {
657 658
 				int tAmount = OreDictionary.getOres(tOreName.toString()).size();
658 659
 				if (tAmount > 0) ORD.println((tAmount<10?" ":"") + tAmount + "x " + tOreName);
659 660
 			}
@@ -683,7 +684,7 @@ public class GT6_Main extends Abstract_Mod {
683 684
 			
684 685
 			tList = UT.Code.getWithoutNulls(FluidRegistry.getRegisteredFluids().keySet().toArray(ZL_STRING));
685 686
 			Collections.sort(tList);
686
-			for (String tFluidName : tList) ORD.println(tFluidName);
687
+			for (Object tFluidName : tList) ORD.println(tFluidName);
687 688
 			
688 689
 			ORD.println("*"); ORD.println("*"); ORD.println("*");
689 690
 			ORD.println("Biomes:");

Loading…
Cancel
Save