Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
- Address ChiefArug's comments
  • Loading branch information
Notenoughmail committed May 19, 2024
1 parent cda4fb7 commit 5a56c38
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ public void init() {
ClientGuiEvent.RENDER_POST.register(Painter.INSTANCE::guiScreenDraw);
ClientGuiEvent.INIT_PRE.register(this::guiPreInit);
ClientGuiEvent.INIT_POST.register(this::guiPostInit);
ClientLifecycleEvent.CLIENT_STARTED.register(this::clientStart);
//ClientTextureStitchEvent.POST.register(this::postAtlasStitch);
}

Expand Down Expand Up @@ -171,6 +172,10 @@ private void guiPostInit(Screen screen, ScreenAccess access) {
}
}

private void clientStart(Minecraft mc) {
ClientEvents.PARTICLE_PROVIDER_REGISTRY.post(new ParticleProviderRegistryEventJS());
}

/*private void postAtlasStitch(TextureAtlas atlas) {
if (!ClientProperties.get().getExportAtlases()) {
return;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ public SoundEntry replace(boolean b) {
return this;
}

public SoundEntry replace() { return replace(true); }

public SoundEntry subtitle(String subtitle) {
this.subtitle = subtitle;
return this;
Expand Down Expand Up @@ -120,6 +122,8 @@ public SoundInstance stream(boolean b) {
return complex();
}

public SoundInstance stream() { return stream(true); }

public SoundInstance attenuationDistance(int i) {
attenuationDistance = i;
return complex();
Expand All @@ -130,6 +134,8 @@ public SoundInstance preload(boolean b) {
return complex();
}

public SoundInstance preload() { return preload(true); }

public SoundInstance asReferenceToEvent() {
isEventReference = true;
return complex();
Expand Down

This file was deleted.

1 change: 0 additions & 1 deletion common/src/main/resources/kubejs-common.mixins.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@
"LocalPlayerMixin",
"MinecraftClientMixin",
"OptionsMixin",
"ParticleEngineMixin",
"ScreenMixin",
"WindowMixin",
"WorldOpenFlowsMixin",
Expand Down

0 comments on commit 5a56c38

Please sign in to comment.