Skip to content

Commit

Permalink
Improve "Kicked for Flying"
Browse files Browse the repository at this point in the history
  • Loading branch information
TheidenHD committed Jun 11, 2024
1 parent 869bee9 commit 71ccaa6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ public static void onPlayerTick(TickEvent.LevelTickEvent e) {
//Otherwise it feels jerky.
if(entity instanceof ServerPlayer) {
MessageRegister.sendToPlayer(motion, (ServerPlayer) entity);
((ServerPlayer) entity).connection.aboveGroundTickCount = -80; //Improve "Kicked for Flying"
} else {
entity.push(vec.x, vec.y, vec.z);
}
Expand Down
3 changes: 2 additions & 1 deletion src/main/resources/META-INF/accesstransformer.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,5 @@ public net.minecraft.client.gui.components.ChatComponent m_241120_()V # refreshT
public net.minecraft.client.gui.components.ChatComponent m_93787_(Lnet/minecraft/network/chat/Component;I)V # addMessage
public net.minecraft.client.gui.components.ChatComponent m_93803_(I)V # removeById
public net.minecraft.client.renderer.RenderType$CompositeRenderType
public net.minecraft.client.renderer.RenderStateShard f_173101_ # POSITION_COLOR_TEX_SHADER
public net.minecraft.client.renderer.RenderStateShard f_173101_ # POSITION_COLOR_TEX_SHADER
public net.minecraft.server.network.ServerGamePacketListenerImpl f_9737_ # floatingTickCount

0 comments on commit 71ccaa6

Please sign in to comment.