1.0.6
All checks were successful
Gulliver Reloaded/pipeline/head This commit looks good

Fix Gradle Script
Automatically Adjust Shadow Size
This commit is contained in:
TheBrokenRail 2020-03-27 13:13:12 -04:00
parent 6ebf8e9c2f
commit ce28c1c609
5 changed files with 35 additions and 3 deletions

View File

@ -1,5 +1,9 @@
# Changelog # Changelog
**1.0.6**
* Fix Gradle Script
* Automatically Adjust Shadow Size
**1.0.5** **1.0.5**
* Tweak Jumping Speed and Movement Speed * Tweak Jumping Speed and Movement Speed

View File

@ -78,7 +78,7 @@ if (project.hasProperty('curseforge.api_key')) {
addGameVersion project.simple_minecraft_version addGameVersion project.simple_minecraft_version
addGameVersion 'Fabric' addGameVersion 'Fabric'
mainArtifact(remapJar) { mainArtifact(remapJar) {
displayName = "SorceryCraft v${mod_version} for ${project.minecraft_version}" displayName = "Gulliver Reloaded v${mod_version} for ${project.minecraft_version}"
} }
afterEvaluate { afterEvaluate {
uploadTask.dependsOn('remapJar') uploadTask.dependsOn('remapJar')

View File

@ -10,7 +10,7 @@ org.gradle.jvmargs = -Xmx1G
fabric_loader_version = 0.7.8+build.189 fabric_loader_version = 0.7.8+build.189
# Mod Properties # Mod Properties
mod_version = 1.0.5 mod_version = 1.0.6
maven_group = com.thebrokenrail maven_group = com.thebrokenrail
archives_base_name = gulliver-reloaded archives_base_name = gulliver-reloaded

View File

@ -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;
}
}
}

View File

@ -4,7 +4,8 @@
"compatibilityLevel": "JAVA_8", "compatibilityLevel": "JAVA_8",
"client": [ "client": [
"MixinClientPlayerInteractionManager", "MixinClientPlayerInteractionManager",
"MixinLivingEntityRenderer" "MixinLivingEntityRenderer",
"MixinEntityRenderDispatcher"
], ],
"mixins": [ "mixins": [
"BrewingRecipeRegistryAccessor", "BrewingRecipeRegistryAccessor",