Skip to content

Commit

Permalink
add missing client annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
HamaIndustries committed Nov 27, 2024
1 parent 2bf8a38 commit 9903c1b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ authors=HavenKing, ModFest
contributors=Chai, Sisby folk, ShiroJR, Superkat32, maximumpower55, CallMeEcho, quaternary, comp500, LemmaEOF, acikek, TheEpicBlock, SkyNotTheLimit, Patbox, AmyMialee
license=CC0-1.0
# Mod Version
baseVersion=1.7.1
baseVersion=1.7.2
# Branch Metadata
branch=1.21
tagBranch=1.21
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

import com.mojang.logging.LogUtils;
import dev.hephaestus.glowcase.Glowcase;
import net.fabricmc.api.EnvType;
import net.fabricmc.api.Environment;
import net.minecraft.block.BlockState;
import net.minecraft.block.entity.BlockEntity;
import net.minecraft.client.MinecraftClient;
Expand Down Expand Up @@ -122,6 +124,7 @@ public Packet<ClientPlayPacketListener> toUpdatePacket() {
return super.toUpdatePacket();
}

@Environment(EnvType.CLIENT)
public static void clientTick(World world, BlockPos pos, BlockState state, SoundPlayerBlockEntity entity) {
MinecraftClient mc = MinecraftClient.getInstance();
if (mc.player instanceof ClientPlayerEntity player) {
Expand Down

0 comments on commit 9903c1b

Please sign in to comment.