Skip to content

Commit

Permalink
Changelog:
Browse files Browse the repository at this point in the history
- Making sure that the mod only works client-side
  • Loading branch information
SB2DD committed Apr 17, 2021
1 parent d3349e9 commit 9197478
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ minecraft_version=1.16.5
yarn_mappings=1.16.5+build.5
loader_version=0.11.2
# Mod Properties
mod_version=1.3
mod_version=1.4
maven_group=me.PolishKrowa
archives_base_name=ctrlq-fabric
# Dependencies
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package me.polishkrowa.ctrlq.mixin;

import net.fabricmc.api.EnvType;
import net.fabricmc.api.Environment;
import net.minecraft.client.MinecraftClient;
import net.minecraft.client.gui.screen.ingame.HandledScreen;
import net.minecraft.client.util.InputUtil;
Expand All @@ -12,7 +14,7 @@
import org.spongepowered.asm.mixin.injection.Inject;
import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable;

@Mixin(HandledScreen.class)
@Mixin(HandledScreen.class) @Environment(EnvType.CLIENT)
public class MixinHandledScreen {
@Shadow @Nullable public Slot focusedSlot;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package me.polishkrowa.ctrlq.mixin;

import net.fabricmc.api.EnvType;
import net.fabricmc.api.Environment;
import net.minecraft.client.MinecraftClient;
import net.minecraft.client.network.ClientPlayerEntity;
import net.minecraft.client.util.InputUtil;
Expand All @@ -11,7 +13,7 @@
import org.spongepowered.asm.mixin.injection.Inject;
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;

@Mixin(MinecraftClient.class)
@Mixin(MinecraftClient.class) @Environment(EnvType.CLIENT)
public class MixinMinecraftClient {
@Shadow @Nullable public ClientPlayerEntity player;

Expand Down

0 comments on commit 9197478

Please sign in to comment.