Fix Gradle Script Automatically Adjust Shadow Size
This commit is contained in:
parent
6ebf8e9c2f
commit
ce28c1c609
|
@ -1,5 +1,9 @@
|
|||
# Changelog
|
||||
|
||||
**1.0.6**
|
||||
* Fix Gradle Script
|
||||
* Automatically Adjust Shadow Size
|
||||
|
||||
**1.0.5**
|
||||
* Tweak Jumping Speed and Movement Speed
|
||||
|
||||
|
|
|
@ -78,7 +78,7 @@ if (project.hasProperty('curseforge.api_key')) {
|
|||
addGameVersion project.simple_minecraft_version
|
||||
addGameVersion 'Fabric'
|
||||
mainArtifact(remapJar) {
|
||||
displayName = "SorceryCraft v${mod_version} for ${project.minecraft_version}"
|
||||
displayName = "Gulliver Reloaded v${mod_version} for ${project.minecraft_version}"
|
||||
}
|
||||
afterEvaluate {
|
||||
uploadTask.dependsOn('remapJar')
|
||||
|
|
|
@ -10,7 +10,7 @@ org.gradle.jvmargs = -Xmx1G
|
|||
fabric_loader_version = 0.7.8+build.189
|
||||
|
||||
# Mod Properties
|
||||
mod_version = 1.0.5
|
||||
mod_version = 1.0.6
|
||||
maven_group = com.thebrokenrail
|
||||
archives_base_name = gulliver-reloaded
|
||||
|
||||
|
|
|
@ -0,0 +1,27 @@
|
|||
package com.thebrokenrail.gulliverreloaded.mixin;
|
||||
|
||||
import com.thebrokenrail.gulliverreloaded.ScaledEntity;
|
||||
import net.fabricmc.api.EnvType;
|
||||
import net.fabricmc.api.Environment;
|
||||
import net.minecraft.client.render.VertexConsumerProvider;
|
||||
import net.minecraft.client.render.entity.EntityRenderDispatcher;
|
||||
import net.minecraft.client.util.math.MatrixStack;
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.world.WorldView;
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
import org.spongepowered.asm.mixin.injection.At;
|
||||
import org.spongepowered.asm.mixin.injection.ModifyArg;
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
@Environment(EnvType.CLIENT)
|
||||
@Mixin(EntityRenderDispatcher.class)
|
||||
public class MixinEntityRenderDispatcher {
|
||||
@ModifyArg(at = @At(value = "INVOKE", target = "Lnet/minecraft/client/render/entity/EntityRenderDispatcher;renderShadow(Lnet/minecraft/client/util/math/MatrixStack;Lnet/minecraft/client/render/VertexConsumerProvider;Lnet/minecraft/entity/Entity;FFLnet/minecraft/world/WorldView;F)V"), method = "render", index = 6)
|
||||
public float adjustShadowSize(MatrixStack matrices, VertexConsumerProvider vertexConsumers, Entity entity, float darkness, float tickDelta, WorldView world, float size) {
|
||||
if (entity instanceof ScaledEntity) {
|
||||
return ((ScaledEntity) entity).getScale() * size;
|
||||
} else {
|
||||
return size;
|
||||
}
|
||||
}
|
||||
}
|
|
@ -4,7 +4,8 @@
|
|||
"compatibilityLevel": "JAVA_8",
|
||||
"client": [
|
||||
"MixinClientPlayerInteractionManager",
|
||||
"MixinLivingEntityRenderer"
|
||||
"MixinLivingEntityRenderer",
|
||||
"MixinEntityRenderDispatcher"
|
||||
],
|
||||
"mixins": [
|
||||
"BrewingRecipeRegistryAccessor",
|
||||
|
|
Reference in New Issue
Block a user