This commit is contained in:
gnembon committed 2021-06-25 23:57:42 -03:00
1 parent 1a152ce20a
commit b3cc32f676
3 files changed
+4 -4

No files matched your search

@@ -11,7 +11,7 @@ import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable;
@Mixin(EndGatewayBlockEntity.class)
public class EndGatewayBlockEntity_creativeNoClipMixin
{
@Inject(method = "method_30276", cancellable = true, at = @At("HEAD"))
@Inject(method = "canTeleport", cancellable = true, at = @At("HEAD"))
private static void checkFlyingCreative(Entity entity, CallbackInfoReturnable<Boolean> cir)
{
if (CarpetSettings.isCreativeFlying(entity)) cir.setReturnValue(false);
@@ -12,7 +12,7 @@ import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable;
@Mixin(StructureBlockBlockEntityRenderer.class)
public abstract class StructureBlockBlockEntityRenderer_mixin implements BlockEntityRenderer<StructureBlockBlockEntity>
{
@Inject(method = "method_33893", at = @At("HEAD"), cancellable = true)
@Inject(method = "getRenderDistance", at = @At("HEAD"), cancellable = true)
void newLimit(CallbackInfoReturnable<Integer> cir)
{
if (CarpetSettings.structureBlockOutlineDistance != 96)