mirror of
https://github.com/BX-Team/DivineMC.git
synced 2026-01-06 15:41:52 +00:00
fix patches
This commit is contained in:
21
patches/server/0037-lithium-entity.fast_elytra_check.patch
Normal file
21
patches/server/0037-lithium-entity.fast_elytra_check.patch
Normal file
@@ -0,0 +1,21 @@
|
||||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||
From: 2No2Name <2No2Name@web.de>
|
||||
Date: Sat, 8 Jan 2022 04:32:41 +0100
|
||||
Subject: [PATCH] lithium: entity.fast_elytra_check
|
||||
|
||||
Original code by CaffeineMC, licensed under GNU Lesser General Public License v3.0
|
||||
You can find the original code on https://github.com/CaffeineMC/lithium-fabric (Yarn mappings)
|
||||
|
||||
diff --git a/src/main/java/net/minecraft/world/entity/LivingEntity.java b/src/main/java/net/minecraft/world/entity/LivingEntity.java
|
||||
index d134e88ae9aa2bd0b2b51056bfcc37941c713002..a49d9ded1238ec393baa2a12c503e4f9774c40ed 100644
|
||||
--- a/src/main/java/net/minecraft/world/entity/LivingEntity.java
|
||||
+++ b/src/main/java/net/minecraft/world/entity/LivingEntity.java
|
||||
@@ -3478,6 +3478,8 @@ public abstract class LivingEntity extends Entity {
|
||||
}
|
||||
|
||||
private void updateFallFlying() {
|
||||
+ if (!this.isFallFlying()) return; // DivineMC
|
||||
+
|
||||
boolean flag = this.getSharedFlag(7);
|
||||
|
||||
if (flag && !this.onGround && !this.isPassenger() && !this.hasEffect(MobEffects.LEVITATION)) {
|
||||
Reference in New Issue
Block a user