mirror of
https://github.com/BX-Team/DivineMC.git
synced 2025-12-20 07:19:23 +00:00
add old bug fixes
This commit is contained in:
@@ -0,0 +1,11 @@
|
|||||||
|
--- a/net/minecraft/server/rcon/RconConsoleSource.java
|
||||||
|
+++ b/net/minecraft/server/rcon/RconConsoleSource.java
|
||||||
|
@@ -51,7 +_,7 @@
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void sendSystemMessage(Component component) {
|
||||||
|
- this.buffer.append(component.getString());
|
||||||
|
+ this.buffer.append(component.getString()).append(System.lineSeparator()); // DivineMC - Fix MC-7569
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
@@ -17,6 +17,21 @@
|
|||||||
int currentSwingDuration = this.getCurrentSwingDuration();
|
int currentSwingDuration = this.getCurrentSwingDuration();
|
||||||
if (this.swinging) {
|
if (this.swinging) {
|
||||||
this.swingTime++;
|
this.swingTime++;
|
||||||
|
@@ -3157,7 +_,13 @@
|
||||||
|
}
|
||||||
|
|
||||||
|
protected float getFlyingSpeed() {
|
||||||
|
- return this.getControllingPassenger() instanceof net.minecraft.world.entity.player.Player ? this.getSpeed() * 0.1F : 0.02F;
|
||||||
|
+ // DivineMC start - Fix MC-172801
|
||||||
|
+ float flyingSpeed = 0.02F;
|
||||||
|
+ if (this.getAttributes().hasAttribute(Attributes.FLYING_SPEED)) {
|
||||||
|
+ flyingSpeed = (float) (this.getAttribute(Attributes.FLYING_SPEED).getValue() * 0.049999999254942D);
|
||||||
|
+ }
|
||||||
|
+ return this.getControllingPassenger() instanceof net.minecraft.world.entity.player.Player ? this.getSpeed() * 0.1F : flyingSpeed;
|
||||||
|
+ // DivineMC end - Fix MC-172801
|
||||||
|
}
|
||||||
|
|
||||||
|
public float getSpeed() {
|
||||||
@@ -3642,6 +_,7 @@
|
@@ -3642,6 +_,7 @@
|
||||||
protected void updateFallFlying() {
|
protected void updateFallFlying() {
|
||||||
this.checkSlowFallDistance();
|
this.checkSlowFallDistance();
|
||||||
|
|||||||
Reference in New Issue
Block a user