You are browsing as a guest. Sign up (or log in) to start making projects!

2h 35m 56s logged

  • checking the recipe for a specific soul gem now only shows that specific entity instead of all soul capturing recipes
  • soul capturing recipe now shows up before the duplication recipe
  • soul gems can now be searched by the name of the entity they contain
  • fix compact mob farm gui not rendering vanilla background overlay
  • allow filling soul gem when held in the main hand
  • fix dedicated server crashing

Running in a dedicated server would crash because there are quite a few places where I referenced client-only classes in places that the jvm will load on the dedicated server as well. Mostly in the different block entity classes, where I had a clientTick method that had ClientLevel as one of it’s parameters. Even though that method would never get called on the dedicated server, java still wants it to exist when loading the class because it’s part of a method’s definition.
My current solution is very very awful… I moved those things into methods in the client initializer and… well… yeah… it just looks and is awful: https://git.offsetmonkey538.top/OffsetMods538/Ultimate-Mob-Farms/src/commit/0.0.7/modded/src/main/java/top/offsetmonkey538/ultimatemobfarms/modded/UltimateMobFarmsModdedClient.java#L65

The real, foolproof solution would be using the split sources feature of loom, which creates a second source set and makes the main source set unable to access client classes. Only problem is that it’d be a bit annoying to fully get set up in my multiloader-version gradle system and would most definitely need many changes on MonkeyLib538 as well and I just am not up for doing that atm.

0
73

Comments 0

No comments yet. Be the first!