Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
public class MinecraftServerMixin {

// in case another mod changes level name during runtime ofc
@Inject(method = "setLevelName", at = @At("TAIL"))
private void whenLevelNameIsDefined(String levelName, CallbackInfo ci) {
@Inject(method = "setupWorld(Ljava/lang/String;Ljava/lang/String;JLnet/minecraft/world/level/LevelGeneratorType;Ljava/lang/String;)V", at = @At("HEAD"))
private void onSetupWorld(CallbackInfo ci) {
CutefulCake.initializeCakeServer();
}

Expand Down
4 changes: 2 additions & 2 deletions src/main/resources/cutefulcake.mixins.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
"package": "net.nullspace_mc.cutefulcake.mixin",
"compatibilityLevel": "JAVA_8",
"mixins": [
],
"server": [
"core.CommandManagerMixin",
"core.MinecraftServerMixin",
"core.PlayerListHeaderS2CPacketMixin",
Expand All @@ -17,6 +15,8 @@
"counter.HopperBlockEntityMixin",
"tick.MinecraftServerMixin"
],
"server": [
],
"injectors": {
"defaultRequire": 1
}
Expand Down