fix: 缩放逻辑修复(无需FreeCam)
This commit is contained in:
parent
8c4ce2709c
commit
1ace616f41
|
|
@ -188,7 +188,7 @@ dependencies {
|
|||
modCompileOnly("blank:freecam-1.20.1:1.2.1")
|
||||
onlyInClient {
|
||||
modRuntimeOnly ("blank:firstperson-1.20.1:2.6.2")
|
||||
modRuntimeOnly("blank:freecam-1.20.1:1.2.1")
|
||||
// modRuntimeOnly("blank:freecam-1.20.1:1.2.1")
|
||||
}
|
||||
onlyInServer {
|
||||
modRuntimeOnly("curse.maven:spark-361579:4738952")
|
||||
|
|
|
|||
|
|
@ -44,7 +44,7 @@ mod_name=Erotic Dungeon Game
|
|||
# The license of the mod. Review your options at https://choosealicense.com/. All Rights Reserved is the default.
|
||||
mod_license=Apache 2.0, CC BY-NC-SA 4.0
|
||||
# The mod version. See https://semver.org/
|
||||
mod_version=26H6
|
||||
mod_version=26H6_Hotfix_202602222300
|
||||
# The group ID for the mod. It is only important when publishing as an artifact to a Maven repository.
|
||||
# This should match the base package used for the mod sources.
|
||||
# See https://maven.apache.org/guides/mini/guide-naming-conventions.html
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@ import top.r3944realms.eroticdungeongame.content.util.FurnitureHelper;
|
|||
import top.r3944realms.eroticdungeongame.core.device.SeatType;
|
||||
|
||||
public class RendererUtil {
|
||||
public static boolean enabled = false;
|
||||
public static boolean enabled = true;
|
||||
public static <T extends LivingEntity> boolean warpRenderer(BlockPos seatPos, PlayerRenderer instance, @NotNull T entity, float entityYaw, float partialTicks, PoseStack poseStack, MultiBufferSource buffer, int packedLight, Operation<Void> original) {
|
||||
if (enabled) {
|
||||
BlockState blockState = entity.level().getBlockState(seatPos);
|
||||
|
|
|
|||
|
|
@ -53,7 +53,7 @@ public class MixinCamera {
|
|||
return Services.WORK_SPACE.tryToDoIfInDeviceAndRet(
|
||||
Minecraft.getInstance().player,
|
||||
data -> {
|
||||
if (Minecraft.getInstance().cameraEntity != null && Objects.equals(Minecraft.getInstance().cameraEntity, Minecraft.getInstance().player) && RendererUtil.enabled) {
|
||||
if (Minecraft.getInstance().cameraEntity != null && Objects.equals(Minecraft.getInstance().cameraEntity, Minecraft.getInstance().player) && RendererUtil.enabled) {
|
||||
// 先执行原始的clip方法获取碰撞结果
|
||||
BlockHitResult hitResult = original.call(instance, context);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user