forked from BynBang/OpenPrestige
fixes
This commit is contained in:
1 parent
83aea53e57
commit
aa4f6b6ddc
842 files changed
+47284
-91563
No files matched your search
@@ -1,7 +1,7 @@
|
||||
package dev.zprestige.prestige.mixin;
|
||||
|
||||
import dev.zprestige.prestige.event.TickEvent3;
|
||||
import dev.zprestige.prestige.util.ClientUtil;
|
||||
import dev.zprestige.prestige.event.GameJoinEvent;
|
||||
import dev.zprestige.prestige.util.HookBridge;
|
||||
import net.lenni0451.classtransform.InjectionCallback;
|
||||
import net.lenni0451.classtransform.annotations.CShadow;
|
||||
import net.lenni0451.classtransform.annotations.CTarget;
|
||||
@@ -22,10 +22,10 @@ public class ClientPlayNetworkHandlerMixin {
|
||||
method = {"onGameJoin"},
|
||||
target = {@CTarget("TAIL")}
|
||||
)
|
||||
private void a(GameJoinS2CPacket gameJoinS2CPacket, InjectionCallback ci) {
|
||||
private void postGameJoinEventAtTail(GameJoinS2CPacket gameJoinS2CPacket, InjectionCallback ci) {
|
||||
if (this.world != null) {
|
||||
TickEvent3 event = ClientUtil.ab();
|
||||
ClientUtil.ac(event);
|
||||
GameJoinEvent event = HookBridge.createGameJoinEvent();
|
||||
HookBridge.postGameJoinEvent(event);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -33,8 +33,8 @@ public class ClientPlayNetworkHandlerMixin {
|
||||
method = {"onChunkData"},
|
||||
target = {@CTarget("TAIL")}
|
||||
)
|
||||
private void b(ChunkDataS2CPacket packet, InjectionCallback info) {
|
||||
private void postChunkDataEventAtTail(ChunkDataS2CPacket packet, InjectionCallback info) {
|
||||
WorldChunk chunk = this.world.getChunk(packet.getChunkX(), packet.getChunkZ());
|
||||
ClientUtil.ae(ClientUtil.ad(chunk));
|
||||
HookBridge.postChunkDataEvent(HookBridge.createChunkDataEvent(chunk));
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user