diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2024-05-13 19:13:16 +0200 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2024-05-13 19:13:16 +0200 |
commit | 573c7b35ecb33e53ecc63492ce0f52eb5e6a99df (patch) | |
tree | 1f4b0bafdaee02e2140e3ae296f9888cfd0d33cc /src/main/java/at/hannibal2 | |
parent | 32a6b798111dac52fdcf94532bc268a1235b5be0 (diff) | |
download | skyhanni-573c7b35ecb33e53ecc63492ce0f52eb5e6a99df.tar.gz skyhanni-573c7b35ecb33e53ecc63492ce0f52eb5e6a99df.tar.bz2 skyhanni-573c7b35ecb33e53ecc63492ce0f52eb5e6a99df.zip |
added skytils credits to block replace visual backend
Diffstat (limited to 'src/main/java/at/hannibal2')
2 files changed, 3 insertions, 0 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/mixins/hooks/BlockRendererDispatcherHook.kt b/src/main/java/at/hannibal2/skyhanni/mixins/hooks/BlockRendererDispatcherHook.kt index 5903136fa..7622ac496 100644 --- a/src/main/java/at/hannibal2/skyhanni/mixins/hooks/BlockRendererDispatcherHook.kt +++ b/src/main/java/at/hannibal2/skyhanni/mixins/hooks/BlockRendererDispatcherHook.kt @@ -9,6 +9,8 @@ import net.minecraft.util.BlockPos import net.minecraft.world.IBlockAccess import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable + +// Taken and modified from Skytils fun modifyGetModelFromBlockState( blockRendererDispatcher: BlockRendererDispatcher, state: IBlockState?, diff --git a/src/main/java/at/hannibal2/skyhanni/mixins/transformers/renderer/MixinBlockRendererDispatcher.java b/src/main/java/at/hannibal2/skyhanni/mixins/transformers/renderer/MixinBlockRendererDispatcher.java index 6269e17f9..7c4265897 100644 --- a/src/main/java/at/hannibal2/skyhanni/mixins/transformers/renderer/MixinBlockRendererDispatcher.java +++ b/src/main/java/at/hannibal2/skyhanni/mixins/transformers/renderer/MixinBlockRendererDispatcher.java @@ -12,6 +12,7 @@ import org.spongepowered.asm.mixin.injection.At; import org.spongepowered.asm.mixin.injection.Inject; import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable; +// Taken from Skytils @Mixin(BlockRendererDispatcher.class) public abstract class MixinBlockRendererDispatcher implements IResourceManagerReloadListener { @Inject(method = "getModelFromBlockState", at = @At("RETURN"), cancellable = true) |