From 9903c1b71d480f7e157679bfdc6ab615ea95a25b Mon Sep 17 00:00:00 2001 From: hama Date: Wed, 27 Nov 2024 02:20:22 -0800 Subject: [PATCH] add missing client annotation --- gradle.properties | 2 +- .../glowcase/block/entity/SoundPlayerBlockEntity.java | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/gradle.properties b/gradle.properties index 5d098fe..f75a77a 100644 --- a/gradle.properties +++ b/gradle.properties @@ -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 diff --git a/src/main/java/dev/hephaestus/glowcase/block/entity/SoundPlayerBlockEntity.java b/src/main/java/dev/hephaestus/glowcase/block/entity/SoundPlayerBlockEntity.java index 906f521..0d72bd3 100644 --- a/src/main/java/dev/hephaestus/glowcase/block/entity/SoundPlayerBlockEntity.java +++ b/src/main/java/dev/hephaestus/glowcase/block/entity/SoundPlayerBlockEntity.java @@ -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; @@ -122,6 +124,7 @@ public Packet 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) {