-
Posts
54 -
Joined
-
Last visited
Posts posted by Arkyo
-
-
19 minutes ago, loordgek said:
Ok, but how can I use NetworkManager to achieve my goal? There is no isMemoryConnection() for 1.16.5
-
1 hour ago, diesieben07 said:
1.17.1 is no longer a supported versions. Currently supported versions are 1.18.1 (Latest) and 1.16.5 (LTS).
yeah, but even if I backport it to 1.16.5, updated the build.gradle and reloaded the project, there is still no event.getConnection().
-
19 minutes ago, diesieben07 said:
What version of Minecraft are you using?
Show the full stacktrace.
1.17.1, Forge 37.1.1
Should I try it on Forge 1.16.5 / 1.18.1?
-
3 minutes ago, diesieben07 said:
getConnection definitely exists. Show your code and the error.
And this is the error line in crash report when I used event.getNetworkManager().isMemoryConnection():
java.lang.NoSuchMethodError: 'boolean net.minecraft.network.Connection.isMemoryConnection()'
-
2 hours ago, diesieben07 said:
The event has getConnection. Connection#isMemoryConnection will tell you if this is a single player connection. Note that when "open the LAN" is selected, other players joining will see it as a normal server, not "single player".
I don't think it has `getConnection()` ... Both IntelliJ and javadoc didn't show a `getConnection()` for LoggedInEvent
EDIT: there is a getNetworkManager() for this event which returns a Connection. However event.getNetworkManager().isMemoryConnection() still throws NoSuchMethodError
-
the JNA depedency of my mod clashes with the JNA of Forge. I removed my JNA package from the compiled mod.jar and it works
-
2 minutes ago, Luis_ST said:
your are on client so there is no Server
If so, is there an client-side event for this? I just want to determine on the client-side whether a player has joined an integrated/dedicated server
-
9 hours ago, diesieben07 said:
ClientPlayerNetworkEvent.LoggedInEvent
Thanks, I'm trying to use the event to determine whether a player has joined an integrated/dedicated server, but it seems that `LocalPlayer` has no `getServer()` and thus I can't use `MinecraftServer#isDedicatedServer`
It crashes with `NoSuchMethodError` when i join an inte/dedi server
@SubscribeEvent public static void onJoin(ClientPlayerNetworkEvent.LoggedInEvent event) { String serverType = event.getPlayer().getServer().isDedicatedServer() ? "Multiplayer" : "Singleplayer"; }
-
Hi, is there an event for client-side when a player joins an integrated or dedicated server for 1.17+?
- 1
-
am sure most of us have heard of the 44228 exploit that was discovered like a week ago, and I know that Mojang & Forge have released fixes respectively.
HOWEVER there are even more log4j exploits: https://imgur.com/M6E9If6 CVE 45046 and 45105
I wonder if anyone knows whether Mojang/Forge acknowledge these?
On top of that, Forge 37.1.1&36.2.20 fixed 44228, but they are still using Log4j 2.15, which means they are still affected by these 2 new exploits right?
-
Hi, I have a mod which contains a depdency that shaded Java Native Access.
The mod works if I `runClient` in IntelliJ, but when I try to shade the mod, It throws an error saying that an incompatible JNA version was found. I believe that the JNA included within the dependency dumps `jnidispatch` in the same directory as the JNA in Forge, but my mod doesn't read its own `jnidispatch`.
I tried relocating `com.sun.jna`, as well as set properties like `jna.tmpdir` and `jna.library.path`, which did make my JNA dump `jnidispatch` in the provided directory, but the version was still incorrect. Maybe my mod dumped Forge's `jnidispatch` instead?
If someone knows how to solve this, please kindly let me know, I can also provide further details if needed. Thank you very much!
-
Ok thanks.... Twitch is super bad at coding their launcher lol
This isn't my first issue since Twitch 1.13
-
If it doesn't crash, let it stop working, it will eventually work again if we glare at them
That said, Forge 25xx is really ancient... probably a year ago?
-
Whenever I try to launch the client, it pops up this which is very weird
Build 215 is ok tho
-
Without Better Foliage , my modpack still crashes.
-
1 minute ago, diesieben07 said:
Don't bother. ForgeGradle is getting a rewrite for 1.13.
So I guess I'll bump to 3.6 then
-
Just now, diesieben07 said:
Okay. Not sure what the problem is then if you really cleaned out the cache.
Do u know something about ForgeGradle's https://github.com/MinecraftForge/ForgeGradle/blob/FG_2.3/src/main/java/net/minecraftforge/gradle/tasks/DeobfuscateJar.java#L287
I want to bump MCInjector to 3.7.3
-
Just now, diesieben07 said:
That is not a branch. You said you forked the Forge repo? Are you trying to make a PR?
1.12.x
And yes I wanna make a PR
-
33 minutes ago, diesieben07 said:
Uh... okay.
Out of interest, what branch are you on?
Forge 2747 i guess
-
I have a lot of illegal access lines tho , here is a little pitch of it
Quote": "29"
Illegal Access Config Line: }
Illegal Access Config Line: ]
Illegal Access Config Line: },
Illegal Access Config Line: "net/minecraft/world/storage/loot/properties/EntityProperty": {
Illegal Access Config Line: "innerClasses": [
Illegal Access Config Line: {
Illegal Access Config Line: "inner_class": "net/minecraft/world/storage/loot/properties/EntityProperty$Serializer",
Illegal Access Config Line: "inner_name": "Serializer",
Illegal Access Config Line: "outer_class": "net/minecraft/world/storage/loot/properties/EntityProperty",
Illegal Access Config Line: "start": "24",
Illegal Access Config Line: "access": "429"
Illegal Access Config Line: }
Illegal Access Config Line: ]
Illegal Access Config Line: }, -
1 minute ago, diesieben07 said:
Not sure what the issue there is. Try cleaning your gradle cache and run again.
Cleaned many times
-
32 minutes ago, diesieben07 said:
Please provide more information. What version are you using? Post the complete log.
-
I forked Forge repo and was running `setup` when this occurs.
I am sorry, but where can I find the gradle log?
-
Caused by: com.cloudbees.diff.PatchException: Cannot find hunk target
at net.minecraftforge.gradle.util.patching.ContextualPatch.applyHunk(ContextualPatch.java:349)
at net.minecraftforge.gradle.util.patching.ContextualPatch.applyPatch(ContextualPatch.java:217)
at net.minecraftforge.gradle.util.patching.ContextualPatch.patch(ContextualPatch.java:147)
at net.minecraftforge.gradle.tasks.PostDecompileTask.asRead(PostDecompileTask.java:135)
at net.minecraftforge.gradle.tasks.AbstractEditJarTask.copyJar(AbstractEditJarTask.java:233)
at net.minecraftforge.gradle.tasks.AbstractEditJarTask.doTask(AbstractEditJarTask.java:73)
in task :sourceProcessJar
Client-side event when player joins a singleplayer/multiplayer server
in Modder Support
Posted · Edited by Arkyo
Ok I've found a hacky way for 1.16.5:
EDIT: Also works for 1.17.1