fix a warning, reduce debug instance memory

This commit is contained in:
Daniella / Tove 2024-06-04 19:28:26 +02:00
parent a6c450bd25
commit d5feed150b
Signed by: TudbuT
GPG key ID: B3CF345217F202D3
2 changed files with 5 additions and 1 deletions

View file

@ -37,7 +37,7 @@ minecraft {
runs {
client {
workingDirectory project.file('run')
jvmArgs = ["-Dfml.coreMods.load=com.baseband.client.DevStub"]
jvmArgs = ["-Dfml.coreMods.load=com.baseband.client.DevStub", "-Xmx700M"]
args = ["--userType", "mojang", "--username", "qukn", "--accessToken", "eyJraWQiOiJhYzg0YSIsImFsZyI6IkhTMjU2In0.eyJ4dWlkIjoiMjUzNTQyNTU0MzA3NTkyNSIsImFnZyI6IkFkdWx0Iiwic3ViIjoiNGU0YmNlN2UtZDBkZi00MjM3LWFhNTUtMjZmZTVhNjY3ZmQ4IiwiYXV0aCI6IlhCT1giLCJucyI6ImRlZmF1bHQiLCJyb2xlcyI6W10sImlzcyI6ImF1dGhlbnRpY2F0aW9uIiwiZmxhZ3MiOlsidHdvZmFjdG9yYXV0aCIsIm1zYW1pZ3JhdGlvbl9zdGFnZTQiLCJvcmRlcnNfMjAyMiIsIm11bHRpcGxheWVyIl0sInByb2ZpbGVzIjp7Im1jIjoiODZhMzJmY2UtYTk0Ni00MzY2LWI0YTAtMDk3YTI5MDcyZTU0In0sInBsYXRmb3JtIjoiUENfTEFVTkNIRVIiLCJuYmYiOjE3MTY1NTc3MzQsImV4cCI6MTcxNjY0NDEzNCwiaWF0IjoxNzE2NTU3NzM0fQ.Bt1AahWJrQqv8iJe8JH4T2IczdKzDjPnN-z7YLpcpFw", "--uuid", "86a32fcea9464366b4a0097a29072e54"]
property 'forge.logging.markers', 'SCAN,REGISTRIES,REGISTRYDUMP'

View file

@ -18,6 +18,10 @@ public class MixinFMLNetworkRegistry {
@Shadow(remap = false)
private final EnumMap<Side,Map<String,FMLEmbeddedChannel>> channels = Maps.newEnumMap(Side.class);
/**
* @author TudbuT
* @reason forge did complete dumbfuckery with newer ForgeGradle that makes their :runClient task incompatible with 1.12.2. this fixes that.
*/
@Overwrite(remap = false)
public EnumMap<Side,FMLEmbeddedChannel> newChannel(ModContainer container, String name, ChannelHandler... handlers)
{