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

+2 -2
View File
@@ -5,9 +5,9 @@ org.gradle.jvmargs=-Xmx1G
# check these on https://fabricmc.net/use # check these on https://fabricmc.net/use
# or better: https://modmuss50.me/fabric.html # or better: https://modmuss50.me/fabric.html
minecraft_version=1.17.1-pre1 minecraft_version=1.17.1-pre1
yarn_mappings=1.17.1-pre1+build.1 yarn_mappings=1.17.1-pre1+build.9
loader_version=0.11.6 loader_version=0.11.6
fabric_version=0.35.2+1.17 fabric_version=0.36.0+1.17
# Mod Properties # Mod Properties
mod_version = 1.4.40 mod_version = 1.4.40
@@ -11,7 +11,7 @@ import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable;
@Mixin(EndGatewayBlockEntity.class) @Mixin(EndGatewayBlockEntity.class)
public class EndGatewayBlockEntity_creativeNoClipMixin 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) private static void checkFlyingCreative(Entity entity, CallbackInfoReturnable<Boolean> cir)
{ {
if (CarpetSettings.isCreativeFlying(entity)) cir.setReturnValue(false); if (CarpetSettings.isCreativeFlying(entity)) cir.setReturnValue(false);
@@ -12,7 +12,7 @@ import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable;
@Mixin(StructureBlockBlockEntityRenderer.class) @Mixin(StructureBlockBlockEntityRenderer.class)
public abstract class StructureBlockBlockEntityRenderer_mixin implements BlockEntityRenderer<StructureBlockBlockEntity> 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) void newLimit(CallbackInfoReturnable<Integer> cir)
{ {
if (CarpetSettings.structureBlockOutlineDistance != 96) if (CarpetSettings.structureBlockOutlineDistance != 96)