Fix AbstractMethodException in FML Registries. Closes #3427
This commit is contained in:
parent
b039e2172b
commit
8f03658f1f
3 changed files with 13 additions and 0 deletions
|
@ -374,6 +374,12 @@ String getVersionFromJava(File file)
|
|||
return out;
|
||||
}
|
||||
|
||||
reobfuscate {
|
||||
extraSrg = [
|
||||
'MD: net/minecraftforge/fml/common/registry/FMLControlledNamespacedRegistry/getKeys ()Ljava/util/Set; net/minecraftforge/fml/common/registry/FMLControlledNamespacedRegistry/getKeys ()Ljava/util/Set;'
|
||||
]
|
||||
}
|
||||
|
||||
task resetBuildNumber << {
|
||||
project.ext.properties.buildNumber = 0;
|
||||
ciWriteBuildNumber.execute()
|
||||
|
|
|
@ -854,6 +854,12 @@ public class FMLControlledNamespacedRegistry<I extends IForgeRegistryEntry<I>> e
|
|||
return getNameForObject(value);
|
||||
}
|
||||
|
||||
@Override //Bouncer for OBF, as the super class's function is NotchCode and gets obfed. This plus the SRG lines prevents a AbstractMethodException
|
||||
public Set<ResourceLocation> getKeys()
|
||||
{
|
||||
return super.getKeys();
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<I> getValues()
|
||||
{
|
||||
|
|
|
@ -1 +1,2 @@
|
|||
MD: net/minecraft/server/management/ServerConfigurationManager/initializeConnectionToPlayer (Lnet/minecraft/network/NetworkManager;Lnet/minecraft/entity/player/EntityPlayerMP;Lnet/minecraft/network/NetHandlerPlayServer;)V net/minecraft/server/management/ServerConfigurationManager/func_72355_a (Lnet/minecraft/network/NetworkManager;Lnet/minecraft/entity/player/EntityPlayerMP;Lnet/minecraft/network/NetHandlerPlayServer;)V
|
||||
MD: net/minecraftforge/fml/common/registry/FMLControlledNamespacedRegistry/getKeys ()Ljava/util/Set; net/minecraftforge/fml/common/registry/FMLControlledNamespacedRegistry/getKeys ()Ljava/util/Set;
|
||||
|
|
Loading…
Reference in a new issue