Update TileEntitySkullRendererMixin.java

This commit is contained in:
kirillsaint 2023-07-10 01:06:10 +06:00
parent 32b548ec4d
commit 96793c83f6

View File

@ -13,7 +13,7 @@ import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
@Mixin(TileEntitySkullRenderer.class)
public class TileEntitySkullRendererMixin {
@Inject(method = "renderTileEntityAt(Lnet/minecraft/tileentity/TileEntitySkull;DDDFI)V", at = @At("HEAD"))
@Inject(method = "renderTileEntityAt(Lnet/minecraft/tileentity/TileEntitySkull;DDDFI)V", at = @At("HEAD"), cancellable = true)
public void cancelRendering(TileEntitySkull te, double x, double y, double z, float partialTicks, int destroyStage, CallbackInfo ci) {
if (Client.getInstance().getSettingsManager().getSettingByClass(FPSBoostMod.class, "Hide Skulls").getValBoolean()) {
ci.cancel();