-
Posts
54 -
Joined
-
Last visited
Recent Profile Visitors
The recent visitors block is disabled and is not being shown to other users.
Arkyo's Achievements
Stone Miner (3/8)
1
Reputation
-
Client-side event when player joins a singleplayer/multiplayer server
Arkyo replied to Arkyo's topic in Modder Support
Ok I've found a hacky way for 1.16.5: EDIT: Also works for 1.17.1 event.getNetworkManager().channel().remoteAddress().toString().startsWith("local:E") ? "Singleplayer" : "Multiplayer" -
Client-side event when player joins a singleplayer/multiplayer server
Arkyo replied to Arkyo's topic in Modder Support
Ok, but how can I use NetworkManager to achieve my goal? There is no isMemoryConnection() for 1.16.5 -
Client-side event when player joins a singleplayer/multiplayer server
Arkyo replied to Arkyo's topic in Modder Support
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(). -
Client-side event when player joins a singleplayer/multiplayer server
Arkyo replied to Arkyo's topic in Modder Support
1.17.1, Forge 37.1.1 https://pastebin.com/a0MzG42J Should I try it on Forge 1.16.5 / 1.18.1? -
Client-side event when player joins a singleplayer/multiplayer server
Arkyo replied to Arkyo's topic in Modder Support
Imgur And this is the error line in crash report when I used event.getNetworkManager().isMemoryConnection(): java.lang.NoSuchMethodError: 'boolean net.minecraft.network.Connection.isMemoryConnection()' -
Client-side event when player joins a singleplayer/multiplayer server
Arkyo replied to Arkyo's topic in Modder Support
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
-
Client-side event when player joins a singleplayer/multiplayer server
Arkyo replied to Arkyo's topic in Modder Support
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 -
Client-side event when player joins a singleplayer/multiplayer server
Arkyo replied to Arkyo's topic in Modder Support
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"; } -
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
-