Update TileEntitySkullRendererMixin.java
This commit is contained in:
parent
32b548ec4d
commit
96793c83f6
|
@ -13,7 +13,7 @@ import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
|
||||||
|
|
||||||
@Mixin(TileEntitySkullRenderer.class)
|
@Mixin(TileEntitySkullRenderer.class)
|
||||||
public class TileEntitySkullRendererMixin {
|
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) {
|
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()) {
|
if (Client.getInstance().getSettingsManager().getSettingByClass(FPSBoostMod.class, "Hide Skulls").getValBoolean()) {
|
||||||
ci.cancel();
|
ci.cancel();
|
||||||
|
|
Loading…
Reference in New Issue