Skip to content

Commit

Permalink
Wuh networking adding screrets stuff ( it's probs still going to not …
Browse files Browse the repository at this point in the history
…work )
  • Loading branch information
Ghostipedia committed Jun 1, 2024
1 parent 25b7b5a commit 2f65f4d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ public void onKeyPressed(ServerPlayer player, KeyBind keyPressed) {
public void inventoryTick(ItemStack stack, Level level, Entity entity, int slotId, boolean isSelected) {
super.inventoryTick(stack, level, entity, slotId, isSelected);
if (!onInit){
//Registers the listener then stops after the first tick. This is kinda hacky but it works.
//Registers the listener then stops after the first tick.
KeyBind.QUARK_TOOL_MODE_SWITCH.registerListener((ServerPlayer) entity,this);
onInit = true;
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
package com.gregtechceu.gtceu.common.network;

import com.gregtechceu.gtceu.GTCEu;
import com.gregtechceu.gtceu.common.network.packets.CPacketKeysPressed;
import com.gregtechceu.gtceu.common.network.packets.SPacketSyncBedrockOreVeins;
import com.gregtechceu.gtceu.common.network.packets.SPacketSyncFluidVeins;
import com.gregtechceu.gtceu.common.network.packets.SPacketSyncOreVeins;
import com.gregtechceu.gtceu.common.network.packets.*;

import com.lowdragmc.lowdraglib.networking.INetworking;
import com.lowdragmc.lowdraglib.networking.forge.LDLNetworkingImpl;
Expand Down

0 comments on commit 2f65f4d

Please sign in to comment.