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 ac0825d commit 6694a0b
Showing 1 changed file with 1 addition and 1 deletion.
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

0 comments on commit 6694a0b

Please sign in to comment.