mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-17 06:48:23 +01:00
Remove patch 0012 hunger mulitplier for sprint jump
Newer and better patch coming soon cc @gsand
This commit is contained in:
parent
35f2082d10
commit
1ee54478dd
14 changed files with 3 additions and 38 deletions
|
@ -1,35 +0,0 @@
|
||||||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
||||||
From: gsand <gsandowns@gmail.com>
|
|
||||||
Date: Tue, 15 Apr 2014 18:00:02 -0700
|
|
||||||
Subject: [PATCH] Configurable hunger multiplier for player sprint jumping
|
|
||||||
|
|
||||||
|
|
||||||
diff --git a/src/main/java/net/minecraft/server/EntityHuman.java b/src/main/java/net/minecraft/server/EntityHuman.java
|
|
||||||
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
|
||||||
--- a/src/main/java/net/minecraft/server/EntityHuman.java
|
|
||||||
+++ b/src/main/java/net/minecraft/server/EntityHuman.java
|
|
||||||
@@ -0,0 +0,0 @@ public abstract class EntityHuman extends EntityLiving implements ICommandListen
|
|
||||||
super.bi();
|
|
||||||
this.a(StatisticList.r, 1);
|
|
||||||
if (this.isSprinting()) {
|
|
||||||
- this.a(0.8F);
|
|
||||||
+ this.a(PaperSpigotWorldConfig.playerSprintJumpingHungerMultiplier); // PaperSpigot - Configurable hunger multiplier for player sprint jumping
|
|
||||||
} else {
|
|
||||||
this.a(0.2F);
|
|
||||||
}
|
|
||||||
diff --git a/src/main/java/org/github/paperspigot/PaperSpigotWorldConfig.java b/src/main/java/org/github/paperspigot/PaperSpigotWorldConfig.java
|
|
||||||
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
|
||||||
--- a/src/main/java/org/github/paperspigot/PaperSpigotWorldConfig.java
|
|
||||||
+++ b/src/main/java/org/github/paperspigot/PaperSpigotWorldConfig.java
|
|
||||||
@@ -0,0 +0,0 @@ public class PaperSpigotWorldConfig
|
|
||||||
{
|
|
||||||
babyZombieMovementSpeed = getDouble( "baby-zombie-movement-speed", 0.5D );
|
|
||||||
}
|
|
||||||
+
|
|
||||||
+ public static float playerSprintJumpingHungerMultiplier;
|
|
||||||
+ private void playerSprintJumpingHungerMultiplier()
|
|
||||||
+ {
|
|
||||||
+ playerSprintJumpingHungerMultiplier = getFloat( "player-sprint-jumping-hunger-multiplier", 0.8F );
|
|
||||||
+ }
|
|
||||||
}
|
|
||||||
--
|
|
|
@ -1,6 +1,6 @@
|
||||||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||||
From: gsand <gsandowns@gmail.com>
|
From: Zach Brown <1254957+zachbr@users.noreply.github.com>
|
||||||
Date: Tue, 24 Jun 2014 08:01:42 -0500
|
Date: Sun, 6 Jul 2014 02:46:20 -0500
|
||||||
Subject: [PATCH] Inverted Daylight Detector Toggle
|
Subject: [PATCH] Inverted Daylight Detector Toggle
|
||||||
|
|
||||||
|
|
||||||
|
@ -56,7 +56,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||||
+++ b/src/main/java/org/github/paperspigot/PaperSpigotWorldConfig.java
|
+++ b/src/main/java/org/github/paperspigot/PaperSpigotWorldConfig.java
|
||||||
@@ -0,0 +0,0 @@ public class PaperSpigotWorldConfig
|
@@ -0,0 +0,0 @@ public class PaperSpigotWorldConfig
|
||||||
{
|
{
|
||||||
playerSprintJumpingHungerMultiplier = getFloat( "player-sprint-jumping-hunger-multiplier", 0.8F );
|
babyZombieMovementSpeed = getDouble( "baby-zombie-movement-speed", 0.5D );
|
||||||
}
|
}
|
||||||
+
|
+
|
||||||
+ public static boolean InvertedDaylightDetectors;
|
+ public static boolean InvertedDaylightDetectors;
|
Loading…
Reference in a new issue