-
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move tags update mixin to ClientCommonPacketListenerImpl
- Loading branch information
Showing
2 changed files
with
16 additions
and
5 deletions.
There are no files selected for viewing
16 changes: 16 additions & 0 deletions
16
...n/java/org/embeddedt/modernfix/fabric/mixin/core/ClientCommonPacketListenerImplMixin.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package org.embeddedt.modernfix.fabric.mixin.core; | ||
|
||
import net.minecraft.client.multiplayer.ClientCommonPacketListenerImpl; | ||
import org.embeddedt.modernfix.ModernFixClientFabric; | ||
import org.spongepowered.asm.mixin.Mixin; | ||
import org.spongepowered.asm.mixin.injection.At; | ||
import org.spongepowered.asm.mixin.injection.Inject; | ||
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo; | ||
|
||
@Mixin(ClientCommonPacketListenerImpl.class) | ||
public class ClientCommonPacketListenerImplMixin { | ||
@Inject(method = "handleUpdateTags", at = @At("RETURN")) | ||
private void signalTags(CallbackInfo ci) { | ||
ModernFixClientFabric.commonMod.onTagsUpdated(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters