mirror of
https://github.com/GTMEGA/EndlessIDs.git
synced 2026-11-12 18:57:37 +00:00
fix xlint warnings
This commit is contained in:
2 files changed
+3
-2
No files matched your search
@@ -34,6 +34,7 @@ public class EndlessIDsCore implements IFMLLoadingPlugin {
|
||||
val cl = Launch.classLoader;
|
||||
val field = LaunchClassLoader.class.getDeclaredField("transformerExceptions");
|
||||
field.setAccessible(true);
|
||||
@SuppressWarnings("unchecked")
|
||||
val exceptions = (Set<String>) field.get(cl);
|
||||
if (exceptions.contains("code.elix_x.coremods")) {
|
||||
EndlessIDsTransformer.logger.info("AntiIDConflict detected!");
|
||||
|
||||
+2
-2
@@ -73,7 +73,7 @@ public abstract class BiomeWandItemMixin {
|
||||
* @reason Biome ID extension
|
||||
*/
|
||||
@Overwrite
|
||||
public void addInformation(ItemStack stack, EntityPlayer player, List list, boolean par4) {
|
||||
public void addInformation(ItemStack stack, EntityPlayer player, List<String> list, boolean par4) {
|
||||
NBTTagCompound tag = stack.getTagCompound();
|
||||
String str = TranslateUtils.translate("biomewand.tooltip.biome") + ": ";
|
||||
if (tag == null || !tag.hasKey("sampledBiomeS")) {
|
||||
@@ -95,7 +95,7 @@ public abstract class BiomeWandItemMixin {
|
||||
* @reason Biome ID extension
|
||||
*/
|
||||
@Overwrite
|
||||
public void getSubItems(Item item, CreativeTabs tabs, List list) {
|
||||
public void getSubItems(Item item, CreativeTabs tabs, List<ItemStack> list) {
|
||||
list.add(new ItemStack((BiomeWandItem) (Object) this, 1));
|
||||
for (BiomeGenBase biome : BiomeGenBase.getBiomeGenArray()) {
|
||||
if (biome != null && !(biome instanceof PlaceholderBiome)) {
|
||||
|
||||
Reference in new issue
Block a user