mirror of
https://github.com/refactorinqq/SLC-1.8.9.git
synced 2024-11-10 08:21:32 +01:00
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)
|
||||
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();
|
||||
|
Loading…
Reference in New Issue
Block a user