2014-06-24 14:21:58 +02:00
|
|
|
From b1322fcbf7d370dd8290bc6080640cd22ceb7a40 Mon Sep 17 00:00:00 2001
|
2014-06-22 22:42:43 +02:00
|
|
|
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
|
2014-06-24 14:21:58 +02:00
|
|
|
index 27e8938..5619179 100644
|
2014-06-22 22:42:43 +02:00
|
|
|
--- a/src/main/java/net/minecraft/server/EntityHuman.java
|
|
|
|
+++ b/src/main/java/net/minecraft/server/EntityHuman.java
|
2014-06-24 14:21:58 +02:00
|
|
|
@@ -1256,7 +1256,7 @@ public abstract class EntityHuman extends EntityLiving implements ICommandListen
|
2014-06-22 22:42:43 +02:00
|
|
|
super.bi();
|
|
|
|
this.a(StatisticList.r, 1);
|
|
|
|
if (this.isSprinting()) {
|
|
|
|
- this.a(0.8F);
|
|
|
|
+ this.a( SpigotWorldConfig.playerSprintJumpingHungerMultiplier ); // PaperSpigot - Configurable hunger multiplier for player sprint jumping
|
|
|
|
} else {
|
|
|
|
this.a(0.2F);
|
|
|
|
}
|
|
|
|
diff --git a/src/main/java/org/spigotmc/SpigotWorldConfig.java b/src/main/java/org/spigotmc/SpigotWorldConfig.java
|
2014-06-24 14:21:58 +02:00
|
|
|
index f818eca..ecf7381 100644
|
2014-06-22 22:42:43 +02:00
|
|
|
--- a/src/main/java/org/spigotmc/SpigotWorldConfig.java
|
|
|
|
+++ b/src/main/java/org/spigotmc/SpigotWorldConfig.java
|
|
|
|
@@ -355,6 +355,12 @@ public class SpigotWorldConfig
|
|
|
|
playerBlockingDamageMultiplier = getFloat( "player-blocking-damage-multiplier", 0.5F );
|
|
|
|
}
|
|
|
|
|
|
|
|
+ public static float playerSprintJumpingHungerMultiplier;
|
|
|
|
+ private void setPlayerSprintJumpingHungerMultiplier()
|
|
|
|
+ {
|
|
|
|
+ playerSprintJumpingHungerMultiplier = getFloat( "player-sprint-jumping-hunger-multiplier", 0.8F );
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
public static double babyZombieMovementSpeed;
|
|
|
|
private void setBabyZombieMovementSpeed()
|
|
|
|
{
|
|
|
|
--
|
|
|
|
1.9.1
|
|
|
|
|