mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-26 19:07:40 +01:00
Update from upstream SpigotMC
Fix empty `ench` tags being wiped by the meta system SpigotMC/Spigot@cc9a1a417f Add Hunger Config Values SpigotMC/Spigot@2cd515e224 Make debug logging togglable SpigotMC/Spigot@d31b1d616f Spigot has implemented a system of hunger exhaustion similar to ours, as such a lot of config values have been moved there. Our exhaustion patch has been trimmed and only a few values for exhaustion remain in paper.yml, the others now sit in spigot.yml
This commit is contained in:
parent
d301626815
commit
a4647a8a71
@ -1,4 +1,4 @@
|
||||
From ae9b5ac4a377b7491baef642727e1c46d2636bee Mon Sep 17 00:00:00 2001
|
||||
From 924c5dc46c27c82e5ec888ef859514316ab8261b Mon Sep 17 00:00:00 2001
|
||||
From: "Evan A. Haskell" <eah2119@gmail.com>
|
||||
Date: Sat, 19 Apr 2014 16:58:26 -0400
|
||||
Subject: [PATCH] Alternative Hopper Ticking
|
||||
@ -45,7 +45,7 @@ index b85b72f..b33ed64 100644
|
||||
+ // Spigot end
|
||||
}
|
||||
diff --git a/src/main/java/net/minecraft/server/Chunk.java b/src/main/java/net/minecraft/server/Chunk.java
|
||||
index 5641ad7..406aead 100644
|
||||
index cbcc9e9..0423ee9 100644
|
||||
--- a/src/main/java/net/minecraft/server/Chunk.java
|
||||
+++ b/src/main/java/net/minecraft/server/Chunk.java
|
||||
@@ -750,6 +750,11 @@ public class Chunk {
|
@ -1,30 +0,0 @@
|
||||
From 20a4b5d5d28823990a3a0b43219322907cc2d936 Mon Sep 17 00:00:00 2001
|
||||
From: Minecrell <dev@minecrell.net>
|
||||
Date: Thu, 24 Jul 2014 13:18:36 +0200
|
||||
Subject: [PATCH] Log debug levels to the log file.
|
||||
|
||||
|
||||
diff --git a/src/main/resources/log4j2.xml b/src/main/resources/log4j2.xml
|
||||
index e2209b8..adc0181 100644
|
||||
--- a/src/main/resources/log4j2.xml
|
||||
+++ b/src/main/resources/log4j2.xml
|
||||
@@ -14,13 +14,13 @@
|
||||
</RollingRandomAccessFile>
|
||||
</Appenders>
|
||||
<Loggers>
|
||||
- <Root level="info">
|
||||
+ <Root level="all">
|
||||
<filters>
|
||||
<MarkerFilter marker="NETWORK_PACKETS" onMatch="DENY" onMismatch="NEUTRAL" />
|
||||
</filters>
|
||||
- <AppenderRef ref="WINDOWS_COMPAT"/>
|
||||
+ <AppenderRef ref="WINDOWS_COMPAT" level="info"/>
|
||||
<AppenderRef ref="File"/>
|
||||
- <AppenderRef ref="TerminalConsole"/>
|
||||
+ <AppenderRef ref="TerminalConsole" level="info"/>
|
||||
</Root>
|
||||
</Loggers>
|
||||
</Configuration>
|
||||
--
|
||||
1.9.1
|
||||
|
@ -1,4 +1,4 @@
|
||||
From e31b524ba7d6dee439a342096ddf01ac026985ea Mon Sep 17 00:00:00 2001
|
||||
From d3491f6de596ea5a2b9a715094953c1a43433e42 Mon Sep 17 00:00:00 2001
|
||||
From: md_5 <git@md-5.net>
|
||||
Date: Sun, 27 Jul 2014 20:46:04 +1000
|
||||
Subject: [PATCH] Apply NBTReadLimiter to more things.
|
@ -1,4 +1,4 @@
|
||||
From 2e52f5674fe8513833304c4234b0f58c318c3ce3 Mon Sep 17 00:00:00 2001
|
||||
From a6fb28006bebb043851422b8ab7c27b924c041c6 Mon Sep 17 00:00:00 2001
|
||||
From: md_5 <git@md-5.net>
|
||||
Date: Mon, 28 Jul 2014 16:55:51 +1000
|
||||
Subject: [PATCH] Allow Attribute Capping.
|
@ -1,4 +1,4 @@
|
||||
From e87f59391db7d6cc2552b22d8e946800962ead28 Mon Sep 17 00:00:00 2001
|
||||
From 129f58f3f8ba975fbe8a487f45b0dce22c229b88 Mon Sep 17 00:00:00 2001
|
||||
From: Thinkofdeath <thinkofdeath@spigotmc.org>
|
||||
Date: Mon, 28 Jul 2014 11:42:11 +0100
|
||||
Subject: [PATCH] Add an option for a global cache for any request on Mojang's
|
@ -1,4 +1,4 @@
|
||||
From 67b3c5662e7681b4f8db81e16fd9250509eb18fa Mon Sep 17 00:00:00 2001
|
||||
From 9ca6ab77b96d4f00ed0f5361bbf0a92957de9722 Mon Sep 17 00:00:00 2001
|
||||
From: Maxim Van de Wynckel <maxim_vdw@hotmail.com>
|
||||
Date: Wed, 30 Jul 2014 01:19:51 +0200
|
||||
Subject: [PATCH] Only fetch an online UUID in online mode
|
@ -1,4 +1,4 @@
|
||||
From 79ea596dbf0fd1be612242139bb967e3687df8e1 Mon Sep 17 00:00:00 2001
|
||||
From 7f6272db9e5c1da260a12fd22fc34a0f6aa25af3 Mon Sep 17 00:00:00 2001
|
||||
From: Thinkofdeath <thinkofdeath@spigotmc.org>
|
||||
Date: Thu, 31 Jul 2014 17:48:20 +0100
|
||||
Subject: [PATCH] Filter attribute modifiers which cause the attribute to go
|
@ -1,4 +1,4 @@
|
||||
From 0102dc4e41312fdd63c4518b142462d1c851b3c4 Mon Sep 17 00:00:00 2001
|
||||
From dac5ed48c55e2ea70288e118a9f2d2043fe4bb8d Mon Sep 17 00:00:00 2001
|
||||
From: mrapple <tony@oc.tc>
|
||||
Date: Thu, 31 Jul 2014 20:05:06 -0500
|
||||
Subject: [PATCH] Fix missed diff from Minecraft 1.3.1 update
|
@ -1,4 +1,4 @@
|
||||
From 98658d64599b2521538967a27f90d50f8347d92c Mon Sep 17 00:00:00 2001
|
||||
From a351c5f393f924a68d20575d7a57815f3ba959c7 Mon Sep 17 00:00:00 2001
|
||||
From: Thinkofdeath <thinkofdeath@spigotmc.org>
|
||||
Date: Thu, 7 Aug 2014 15:48:33 +0100
|
||||
Subject: [PATCH] Fix LEFT_CLICK_AIR detection when not in creative
|
@ -1,4 +1,4 @@
|
||||
From cda57ced6f737f807bc0a8cc9ecd00a56389c877 Mon Sep 17 00:00:00 2001
|
||||
From 7ca7779b28c1c0c64547972c419251ab682804d9 Mon Sep 17 00:00:00 2001
|
||||
From: md_5 <git@md-5.net>
|
||||
Date: Fri, 8 Aug 2014 19:57:03 +1000
|
||||
Subject: [PATCH] Plug WorldMap Memory Leak
|
@ -1,4 +1,4 @@
|
||||
From c9d9a1ae8bc827c6b3128bf8fa74cc260ac9adec Mon Sep 17 00:00:00 2001
|
||||
From cbfc57150639ba9254c567c4391904aa5ba6967b Mon Sep 17 00:00:00 2001
|
||||
From: md_5 <git@md-5.net>
|
||||
Date: Sun, 10 Aug 2014 11:01:02 +1000
|
||||
Subject: [PATCH] Force Close Inventory On Move
|
@ -1,4 +1,4 @@
|
||||
From baa91fa0bb4aee82819f9ccb4aa2f6c8889365ca Mon Sep 17 00:00:00 2001
|
||||
From d3ad925d2b1ffcdab030cf892d231596d8493558 Mon Sep 17 00:00:00 2001
|
||||
From: Aikar <aikar@aikar.co>
|
||||
Date: Fri, 15 Aug 2014 00:56:41 -0400
|
||||
Subject: [PATCH] Fix Corrupted Trapped Chest
|
38
CraftBukkit-Patches/0174-Remove-uneeded-validation.patch
Normal file
38
CraftBukkit-Patches/0174-Remove-uneeded-validation.patch
Normal file
@ -0,0 +1,38 @@
|
||||
From b977d6e326ccdabb10e3d7af880b08f91be60911 Mon Sep 17 00:00:00 2001
|
||||
From: drXor <mcyoung@mit.edu>
|
||||
Date: Fri, 15 Aug 2014 18:11:09 -0400
|
||||
Subject: [PATCH] Remove uneeded validation
|
||||
|
||||
|
||||
diff --git a/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaItem.java b/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaItem.java
|
||||
index bcde85c..adaac09 100644
|
||||
--- a/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaItem.java
|
||||
+++ b/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaItem.java
|
||||
@@ -509,7 +509,7 @@ class CraftMetaItem implements ItemMeta, Repairable {
|
||||
}
|
||||
|
||||
static void applyEnchantments(Map<Enchantment, Integer> enchantments, NBTTagCompound tag, ItemMetaKey key) {
|
||||
- if (enchantments == null || enchantments.size() == 0) {
|
||||
+ if (enchantments == null /*|| enchantments.size() == 0*/) { // Spigot - remove size check
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -600,7 +600,14 @@ class CraftMetaItem implements ItemMeta, Repairable {
|
||||
}
|
||||
|
||||
public boolean removeEnchant(Enchantment ench) {
|
||||
- return hasEnchants() && enchantments.remove(ench) != null;
|
||||
+ // Spigot start
|
||||
+ boolean b = hasEnchants() && enchantments.remove( ench ) != null;
|
||||
+ if ( enchantments != null && enchantments.isEmpty() )
|
||||
+ {
|
||||
+ this.enchantments = null;
|
||||
+ }
|
||||
+ return b;
|
||||
+ // Spigot end
|
||||
}
|
||||
|
||||
public boolean hasEnchants() {
|
||||
--
|
||||
1.9.1
|
||||
|
68
CraftBukkit-Patches/0175-Add-Hunger-Config-Values.patch
Normal file
68
CraftBukkit-Patches/0175-Add-Hunger-Config-Values.patch
Normal file
@ -0,0 +1,68 @@
|
||||
From 8a5b07ff394ea730f43b69c19c4500f542f505f4 Mon Sep 17 00:00:00 2001
|
||||
From: lazertester <austin.techhead@gmail.com>
|
||||
Date: Sun, 17 Aug 2014 19:56:17 +1000
|
||||
Subject: [PATCH] Add Hunger Config Values
|
||||
|
||||
|
||||
diff --git a/src/main/java/net/minecraft/server/EntityHuman.java b/src/main/java/net/minecraft/server/EntityHuman.java
|
||||
index f3e4328..219eb5f 100644
|
||||
--- a/src/main/java/net/minecraft/server/EntityHuman.java
|
||||
+++ b/src/main/java/net/minecraft/server/EntityHuman.java
|
||||
@@ -1006,7 +1006,7 @@ public abstract class EntityHuman extends EntityLiving implements ICommandListen
|
||||
}
|
||||
}
|
||||
|
||||
- this.applyExhaustion(0.3F);
|
||||
+ this.applyExhaustion(world.spigotConfig.combatExhaustion); // Spigot - Change to use configurable value
|
||||
} else if (flag1) {
|
||||
entity.extinguish();
|
||||
}
|
||||
@@ -1266,9 +1266,9 @@ public abstract class EntityHuman extends EntityLiving implements ICommandListen
|
||||
super.bj();
|
||||
this.a(StatisticList.r, 1);
|
||||
if (this.isSprinting()) {
|
||||
- this.applyExhaustion(0.8F);
|
||||
+ this.applyExhaustion(world.spigotConfig.sprintExhaustion); // Spigot - Change to use configurable value
|
||||
} else {
|
||||
- this.applyExhaustion(0.2F);
|
||||
+ this.applyExhaustion(world.spigotConfig.walkExhaustion); // Spigot - Change to use configurable value
|
||||
}
|
||||
}
|
||||
|
||||
diff --git a/src/main/java/net/minecraft/server/FoodMetaData.java b/src/main/java/net/minecraft/server/FoodMetaData.java
|
||||
index 4169231..4a7f1e5 100644
|
||||
--- a/src/main/java/net/minecraft/server/FoodMetaData.java
|
||||
+++ b/src/main/java/net/minecraft/server/FoodMetaData.java
|
||||
@@ -65,7 +65,7 @@ public class FoodMetaData {
|
||||
if (this.foodTickTimer >= 80) {
|
||||
// CraftBukkit - added RegainReason
|
||||
entityhuman.heal(1.0F, org.bukkit.event.entity.EntityRegainHealthEvent.RegainReason.SATIATED);
|
||||
- this.a(3.0F);
|
||||
+ this.a(entityhuman.world.spigotConfig.regenExhaustion); // Spigot - Change to use configurable value
|
||||
this.foodTickTimer = 0;
|
||||
}
|
||||
} else if (this.foodLevel <= 0) {
|
||||
diff --git a/src/main/java/org/spigotmc/SpigotWorldConfig.java b/src/main/java/org/spigotmc/SpigotWorldConfig.java
|
||||
index fd79b25..3500931 100644
|
||||
--- a/src/main/java/org/spigotmc/SpigotWorldConfig.java
|
||||
+++ b/src/main/java/org/spigotmc/SpigotWorldConfig.java
|
||||
@@ -326,4 +326,16 @@ public class SpigotWorldConfig
|
||||
largeFeatureSeed = getInt( "seed-feature", 14357617 );
|
||||
log( "Custom Map Seeds: Village: " + villageSeed + " Feature: " + largeFeatureSeed );
|
||||
}
|
||||
+
|
||||
+ public float walkExhaustion;
|
||||
+ public float sprintExhaustion;
|
||||
+ public float combatExhaustion;
|
||||
+ public float regenExhaustion;
|
||||
+ private void initHunger()
|
||||
+ {
|
||||
+ walkExhaustion = (float) getDouble( "hunger.walk-exhaustion", 0.2 );
|
||||
+ sprintExhaustion = (float) getDouble( "hunger.sprint-exhaustion", 0.8 );
|
||||
+ combatExhaustion = (float) getDouble( "hunger.combat-exhaustion", 0.3 );
|
||||
+ regenExhaustion = (float) getDouble( "hunger.regen-exhaustion", 3 );
|
||||
+ }
|
||||
}
|
||||
--
|
||||
1.9.1
|
||||
|
67
CraftBukkit-Patches/0176-Make-debug-logging-togglable.patch
Normal file
67
CraftBukkit-Patches/0176-Make-debug-logging-togglable.patch
Normal file
@ -0,0 +1,67 @@
|
||||
From eb3b3f16aa7769e44c2394e78f650a860fcb364f Mon Sep 17 00:00:00 2001
|
||||
From: Minecrell <dev@minecrell.net>
|
||||
Date: Sun, 17 Aug 2014 12:42:53 +0200
|
||||
Subject: [PATCH] Make debug logging togglable.
|
||||
|
||||
|
||||
diff --git a/src/main/java/org/spigotmc/SpigotConfig.java b/src/main/java/org/spigotmc/SpigotConfig.java
|
||||
index 9d2dfe9..fdc64d3 100644
|
||||
--- a/src/main/java/org/spigotmc/SpigotConfig.java
|
||||
+++ b/src/main/java/org/spigotmc/SpigotConfig.java
|
||||
@@ -18,6 +18,9 @@ import net.minecraft.server.AttributeRanged;
|
||||
import net.minecraft.server.GenericAttributes;
|
||||
import net.minecraft.util.gnu.trove.map.hash.TObjectIntHashMap;
|
||||
import net.minecraft.server.MinecraftServer;
|
||||
+import org.apache.logging.log4j.LogManager;
|
||||
+import org.apache.logging.log4j.core.LoggerContext;
|
||||
+import org.apache.logging.log4j.core.config.Configuration;
|
||||
import org.bukkit.Bukkit;
|
||||
import org.bukkit.ChatColor;
|
||||
import org.bukkit.command.Command;
|
||||
@@ -371,4 +374,27 @@ public class SpigotConfig
|
||||
URL.setURLStreamHandlerFactory(new CachedStreamHandlerFactory());
|
||||
}
|
||||
}
|
||||
+
|
||||
+ public static boolean debug;
|
||||
+ private static void debug()
|
||||
+ {
|
||||
+ debug = getBoolean( "settings.debug", false );
|
||||
+
|
||||
+ if ( debug && !LogManager.getRootLogger().isTraceEnabled() )
|
||||
+ {
|
||||
+ // Enable debug logging
|
||||
+ LoggerContext ctx = (LoggerContext) LogManager.getContext( false );
|
||||
+ Configuration conf = ctx.getConfiguration();
|
||||
+ conf.getLoggerConfig( LogManager.ROOT_LOGGER_NAME ).setLevel( org.apache.logging.log4j.Level.ALL );
|
||||
+ ctx.updateLoggers( conf );
|
||||
+ }
|
||||
+
|
||||
+ if ( LogManager.getRootLogger().isTraceEnabled() )
|
||||
+ {
|
||||
+ Bukkit.getLogger().info( "Debug logging is enabled" );
|
||||
+ } else
|
||||
+ {
|
||||
+ Bukkit.getLogger().info( "Debug logging is disabled" );
|
||||
+ }
|
||||
+ }
|
||||
}
|
||||
diff --git a/src/main/resources/log4j2.xml b/src/main/resources/log4j2.xml
|
||||
index e2209b8..65c09a8 100644
|
||||
--- a/src/main/resources/log4j2.xml
|
||||
+++ b/src/main/resources/log4j2.xml
|
||||
@@ -18,9 +18,9 @@
|
||||
<filters>
|
||||
<MarkerFilter marker="NETWORK_PACKETS" onMatch="DENY" onMismatch="NEUTRAL" />
|
||||
</filters>
|
||||
- <AppenderRef ref="WINDOWS_COMPAT"/>
|
||||
+ <AppenderRef ref="WINDOWS_COMPAT" level="info"/>
|
||||
<AppenderRef ref="File"/>
|
||||
- <AppenderRef ref="TerminalConsole"/>
|
||||
+ <AppenderRef ref="TerminalConsole" level="info"/>
|
||||
</Root>
|
||||
</Loggers>
|
||||
</Configuration>
|
||||
--
|
||||
1.9.1
|
||||
|
@ -1,11 +1,11 @@
|
||||
From 9471d677129b9aebaa0045bb39f128ace1769b46 Mon Sep 17 00:00:00 2001
|
||||
From b602c24185643022a5ccdb755ebd3667b467d1ec Mon Sep 17 00:00:00 2001
|
||||
From: gsand <gsandowns@gmail.com>
|
||||
Date: Tue, 5 Aug 2014 18:28:21 -0500
|
||||
Date: Sun, 17 Aug 2014 16:40:54 -0500
|
||||
Subject: [PATCH] Player Exhaustion Multipliers
|
||||
|
||||
|
||||
diff --git a/src/main/java/net/minecraft/server/Block.java b/src/main/java/net/minecraft/server/Block.java
|
||||
index 0893a6f..acb9c54 100644
|
||||
index 0893a6f..24e84d6 100644
|
||||
--- a/src/main/java/net/minecraft/server/Block.java
|
||||
+++ b/src/main/java/net/minecraft/server/Block.java
|
||||
@@ -686,7 +686,7 @@ public class Block {
|
||||
@ -13,103 +13,45 @@ index 0893a6f..acb9c54 100644
|
||||
public void a(World world, EntityHuman entityhuman, int i, int j, int k, int l) {
|
||||
entityhuman.a(StatisticList.MINE_BLOCK_COUNT[getId(this)], 1);
|
||||
- entityhuman.applyExhaustion(0.025F);
|
||||
+ entityhuman.applyExhaustion(org.github.paperspigot.PaperSpigotConfig.playerExhaustionBlockBreak); // PaperSpigot - Configurable block breaking exhaustion
|
||||
+ entityhuman.applyExhaustion(world.paperSpigotConfig.blockBreakExhaustion); // PaperSpigot - Configurable block break exhaustion
|
||||
if (this.E() && EnchantmentManager.hasSilkTouchEnchantment(entityhuman)) {
|
||||
ItemStack itemstack = this.j(l);
|
||||
|
||||
diff --git a/src/main/java/net/minecraft/server/EntityHuman.java b/src/main/java/net/minecraft/server/EntityHuman.java
|
||||
index c0355bc..08987f2 100644
|
||||
index 0054f18..22776ad 100644
|
||||
--- a/src/main/java/net/minecraft/server/EntityHuman.java
|
||||
+++ b/src/main/java/net/minecraft/server/EntityHuman.java
|
||||
@@ -1006,7 +1006,7 @@ public abstract class EntityHuman extends EntityLiving implements ICommandListen
|
||||
}
|
||||
}
|
||||
|
||||
- this.applyExhaustion(0.3F);
|
||||
+ this.applyExhaustion(org.github.paperspigot.PaperSpigotConfig.playerExhaustionAttack); // PaperSpigot - Configurable attack exhaustion
|
||||
} else if (flag1) {
|
||||
entity.extinguish();
|
||||
}
|
||||
@@ -1266,9 +1266,9 @@ public abstract class EntityHuman extends EntityLiving implements ICommandListen
|
||||
super.bj();
|
||||
this.a(StatisticList.r, 1);
|
||||
if (this.isSprinting()) {
|
||||
- this.applyExhaustion(0.8F);
|
||||
+ this.applyExhaustion(org.github.paperspigot.PaperSpigotConfig.playerExhaustionSprintJumping); // PaperSpigot - Configurable sprint jumping exhaustion
|
||||
} else {
|
||||
- this.applyExhaustion(0.2F);
|
||||
+ this.applyExhaustion(org.github.paperspigot.PaperSpigotConfig.playerExhaustionJumping); // PaperSpigot - Configurable jumping exhaustion
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1304,13 +1304,13 @@ public abstract class EntityHuman extends EntityLiving implements ICommandListen
|
||||
i = Math.round(MathHelper.sqrt(d0 * d0 + d1 * d1 + d2 * d2) * 100.0F);
|
||||
if (i > 0) {
|
||||
this.a(StatisticList.m, i);
|
||||
- this.applyExhaustion(0.015F * (float) i * 0.01F);
|
||||
+ this.applyExhaustion(org.github.paperspigot.PaperSpigotConfig.playerExhaustionSwimming * (float) i * 0.01F); // PaperSpigot - Configurable swimming exhaustion
|
||||
+ this.applyExhaustion(world.paperSpigotConfig.playerSwimmingExhaustion * (float) i * 0.01F); // PaperSpigot - Configurable swimming exhaustion
|
||||
}
|
||||
} else if (this.M()) {
|
||||
i = Math.round(MathHelper.sqrt(d0 * d0 + d2 * d2) * 100.0F);
|
||||
if (i > 0) {
|
||||
this.a(StatisticList.i, i);
|
||||
- this.applyExhaustion(0.015F * (float) i * 0.01F);
|
||||
+ this.applyExhaustion(org.github.paperspigot.PaperSpigotConfig.playerExhaustionSwimming * (float) i * 0.01F); // PaperSpigot - Configurable swimming (diving) exhaustion
|
||||
+ this.applyExhaustion(world.paperSpigotConfig.playerSwimmingExhaustion * (float) i * 0.01F); // PaperSpigot - Configurable swimming (diving) exhaustion
|
||||
}
|
||||
} else if (this.h_()) {
|
||||
if (d1 > 0.0D) {
|
||||
@@ -1321,9 +1321,9 @@ public abstract class EntityHuman extends EntityLiving implements ICommandListen
|
||||
if (i > 0) {
|
||||
this.a(StatisticList.h, i);
|
||||
if (this.isSprinting()) {
|
||||
- this.applyExhaustion(0.099999994F * (float) i * 0.01F);
|
||||
+ this.applyExhaustion(org.github.paperspigot.PaperSpigotConfig.playerExhaustionSprinting * (float) i * 0.01F); // PaperSpigot - Configurable sprinting exhaustion
|
||||
} else {
|
||||
- this.applyExhaustion(0.01F * (float) i * 0.01F);
|
||||
+ this.applyExhaustion(org.github.paperspigot.PaperSpigotConfig.playerExhaustionWalking * (float) i * 0.01F); // PaperSpigot - Configurable walking exhaustion
|
||||
}
|
||||
}
|
||||
} else {
|
||||
diff --git a/src/main/java/net/minecraft/server/FoodMetaData.java b/src/main/java/net/minecraft/server/FoodMetaData.java
|
||||
index 4169231..0189c99 100644
|
||||
--- a/src/main/java/net/minecraft/server/FoodMetaData.java
|
||||
+++ b/src/main/java/net/minecraft/server/FoodMetaData.java
|
||||
@@ -65,7 +65,7 @@ public class FoodMetaData {
|
||||
if (this.foodTickTimer >= 80) {
|
||||
// CraftBukkit - added RegainReason
|
||||
entityhuman.heal(1.0F, org.bukkit.event.entity.EntityRegainHealthEvent.RegainReason.SATIATED);
|
||||
- this.a(3.0F);
|
||||
+ this.a(org.github.paperspigot.PaperSpigotConfig.playerExhaustionRegeneration); // PaperSpigot - Configurable regeneration exhaustion
|
||||
this.foodTickTimer = 0;
|
||||
}
|
||||
} else if (this.foodLevel <= 0) {
|
||||
diff --git a/src/main/java/org/github/paperspigot/PaperSpigotConfig.java b/src/main/java/org/github/paperspigot/PaperSpigotConfig.java
|
||||
index 25a94a6..89bb1ca 100644
|
||||
--- a/src/main/java/org/github/paperspigot/PaperSpigotConfig.java
|
||||
+++ b/src/main/java/org/github/paperspigot/PaperSpigotConfig.java
|
||||
@@ -161,4 +161,24 @@ public class PaperSpigotConfig
|
||||
Bukkit.getLogger().log( Level.INFO, "Disabling player interaction limiter, your server may be more vulnerable to malicious users" );
|
||||
}
|
||||
diff --git a/src/main/java/org/github/paperspigot/PaperSpigotWorldConfig.java b/src/main/java/org/github/paperspigot/PaperSpigotWorldConfig.java
|
||||
index 1d01f89..df84df5 100644
|
||||
--- a/src/main/java/org/github/paperspigot/PaperSpigotWorldConfig.java
|
||||
+++ b/src/main/java/org/github/paperspigot/PaperSpigotWorldConfig.java
|
||||
@@ -121,4 +121,12 @@ public class PaperSpigotWorldConfig
|
||||
fishingMinTicks = getInt( "fishing-time-range.MinimumTicks", 100 );
|
||||
fishingMaxTicks = getInt( "fishing-time-range.MaximumTicks", 900 );
|
||||
}
|
||||
+
|
||||
+ public static float playerExhaustionWalking;
|
||||
+ public static float playerExhaustionSwimming;
|
||||
+ public static float playerExhaustionBlockBreak;
|
||||
+ public static float playerExhaustionSprinting;
|
||||
+ public static float playerExhaustionJumping;
|
||||
+ public static float playerExhaustionSprintJumping;
|
||||
+ public static float playerExhaustionAttack;
|
||||
+ public static float playerExhaustionRegeneration;
|
||||
+ private static void playerExhaustion()
|
||||
+ public float blockBreakExhaustion;
|
||||
+ public float playerSwimmingExhaustion;
|
||||
+ private void exhaustionValues ()
|
||||
+ {
|
||||
+ playerExhaustionWalking = getFloat( "player-exhaustion.walking", 0.01F );
|
||||
+ playerExhaustionSwimming = getFloat( "player-exhaustion.swimming", 0.015F );
|
||||
+ playerExhaustionBlockBreak = getFloat( "player-exhaustion.block-break", 0.025F );
|
||||
+ playerExhaustionSprinting = getFloat( "player-exhaustion.sprinting", 0.1F );
|
||||
+ playerExhaustionJumping = getFloat( "player-exhaustion.jumping", 0.2F );
|
||||
+ playerExhaustionSprintJumping = getFloat( "player-exhaustion.sprint-jumping", 0.8F );
|
||||
+ playerExhaustionAttack = getFloat( "player-exhaustion.attack", 0.3F );
|
||||
+ playerExhaustionRegeneration = getFloat( "player-exhaustion.regeneration", 3.0F );
|
||||
+ blockBreakExhaustion = getFloat( "player-exhaustion.block-break", 0.025F );
|
||||
+ playerSwimmingExhaustion = getFloat("player-exhaustion.swimming", 0.015F );
|
||||
+ }
|
||||
}
|
||||
--
|
||||
|
@ -1,4 +1,4 @@
|
||||
From 4bd854bcda1d3f9666d2a908cc80c63afc3d002a Mon Sep 17 00:00:00 2001
|
||||
From f6eb14ae1bb9955b7f74c46cecb138c78b49cd3f Mon Sep 17 00:00:00 2001
|
||||
From: Suddenly <suddenly@suddenly.coffee>
|
||||
Date: Mon, 7 Jul 2014 04:11:34 +0100
|
||||
Subject: [PATCH] Add configurable despawn distances for living entities
|
||||
@ -26,12 +26,12 @@ index 2915f4a..d0f7033 100644
|
||||
}
|
||||
}
|
||||
diff --git a/src/main/java/org/github/paperspigot/PaperSpigotWorldConfig.java b/src/main/java/org/github/paperspigot/PaperSpigotWorldConfig.java
|
||||
index 1d01f89..3d11da5 100644
|
||||
index df84df5..1e1a382 100644
|
||||
--- a/src/main/java/org/github/paperspigot/PaperSpigotWorldConfig.java
|
||||
+++ b/src/main/java/org/github/paperspigot/PaperSpigotWorldConfig.java
|
||||
@@ -121,4 +121,22 @@ public class PaperSpigotWorldConfig
|
||||
fishingMinTicks = getInt( "fishing-time-range.MinimumTicks", 100 );
|
||||
fishingMaxTicks = getInt( "fishing-time-range.MaximumTicks", 900 );
|
||||
@@ -129,4 +129,22 @@ public class PaperSpigotWorldConfig
|
||||
blockBreakExhaustion = getFloat( "player-exhaustion.block-break", 0.025F );
|
||||
playerSwimmingExhaustion = getFloat("player-exhaustion.swimming", 0.015F );
|
||||
}
|
||||
+
|
||||
+ public Integer softDespawnDistance;
|
||||
|
@ -1,4 +1,4 @@
|
||||
From 8661e9266f9c8823257b23db91a75b7faba679ee Mon Sep 17 00:00:00 2001
|
||||
From 02810be39c90969e1bddb98ce902d19063d53171 Mon Sep 17 00:00:00 2001
|
||||
From: Dmck2b <itallhappenedverysuddenly@gmail.com>
|
||||
Date: Thu, 10 Jul 2014 16:57:10 +0100
|
||||
Subject: [PATCH] Allow for toggling of spawn chunks
|
||||
@ -6,7 +6,7 @@ Subject: [PATCH] Allow for toggling of spawn chunks
|
||||
Now with 100% more confirmed working by creator
|
||||
|
||||
diff --git a/src/main/java/net/minecraft/server/World.java b/src/main/java/net/minecraft/server/World.java
|
||||
index a204966..e82cb35 100644
|
||||
index 7281b59..0358c7c 100644
|
||||
--- a/src/main/java/net/minecraft/server/World.java
|
||||
+++ b/src/main/java/net/minecraft/server/World.java
|
||||
@@ -222,6 +222,7 @@ public abstract class World implements IBlockAccess {
|
||||
@ -18,10 +18,10 @@ index a204966..e82cb35 100644
|
||||
this.chunkTickRadius = (byte) ( ( this.getServer().getViewDistance() < 7 ) ? this.getServer().getViewDistance() : 7 );
|
||||
this.chunkTickList = new net.minecraft.util.gnu.trove.map.hash.TLongShortHashMap( spigotConfig.chunksPerTick * 5, 0.7f, Long.MIN_VALUE, Short.MIN_VALUE );
|
||||
diff --git a/src/main/java/org/github/paperspigot/PaperSpigotWorldConfig.java b/src/main/java/org/github/paperspigot/PaperSpigotWorldConfig.java
|
||||
index e627c4e..39bbd62 100644
|
||||
index 1e1a382..ca977bc 100644
|
||||
--- a/src/main/java/org/github/paperspigot/PaperSpigotWorldConfig.java
|
||||
+++ b/src/main/java/org/github/paperspigot/PaperSpigotWorldConfig.java
|
||||
@@ -162,4 +162,11 @@ public class PaperSpigotWorldConfig
|
||||
@@ -147,4 +147,11 @@ public class PaperSpigotWorldConfig
|
||||
softDespawnDistance = softDespawnDistance*softDespawnDistance;
|
||||
hardDespawnDistance = hardDespawnDistance*hardDespawnDistance;
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
From 2c20bd30ddb002e0f17abbce55b0ccf99fb659c2 Mon Sep 17 00:00:00 2001
|
||||
From 282c195a7be0f610136d9d068558399d6a4df4ab Mon Sep 17 00:00:00 2001
|
||||
From: Byteflux <byte@byteflux.net>
|
||||
Date: Tue, 5 Aug 2014 18:39:57 -0500
|
||||
Subject: [PATCH] Drop falling block entities that are above the specified
|
||||
@ -27,10 +27,10 @@ index df602bd..00dcca6 100644
|
||||
this.motY *= 0.9800000190734863D;
|
||||
this.motZ *= 0.9800000190734863D;
|
||||
diff --git a/src/main/java/org/github/paperspigot/PaperSpigotWorldConfig.java b/src/main/java/org/github/paperspigot/PaperSpigotWorldConfig.java
|
||||
index f998cb0..fc9b6df 100644
|
||||
index ca977bc..708318d 100644
|
||||
--- a/src/main/java/org/github/paperspigot/PaperSpigotWorldConfig.java
|
||||
+++ b/src/main/java/org/github/paperspigot/PaperSpigotWorldConfig.java
|
||||
@@ -146,4 +146,14 @@ public class PaperSpigotWorldConfig
|
||||
@@ -154,4 +154,14 @@ public class PaperSpigotWorldConfig
|
||||
keepSpawnInMemory = getBoolean( "keep-spawn-loaded", true );
|
||||
log( "Keep spawn chunk loaded: " + keepSpawnInMemory );
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
From 0bb791d470c5d4067198a353c2f0aab3168ff20f Mon Sep 17 00:00:00 2001
|
||||
From 0fca3bbe6aed83859a5b107f58c74ee936f5736f Mon Sep 17 00:00:00 2001
|
||||
From: Byteflux <byte@byteflux.net>
|
||||
Date: Sun, 3 Aug 2014 21:20:42 -0500
|
||||
Subject: [PATCH] Configurable speed for water flowing over lava
|
||||
@ -46,10 +46,10 @@ index cdce3ff..6409391 100644
|
||||
+ }
|
||||
}
|
||||
diff --git a/src/main/java/org/github/paperspigot/PaperSpigotWorldConfig.java b/src/main/java/org/github/paperspigot/PaperSpigotWorldConfig.java
|
||||
index fc9b6df..256316e 100644
|
||||
index 708318d..ce3fb73 100644
|
||||
--- a/src/main/java/org/github/paperspigot/PaperSpigotWorldConfig.java
|
||||
+++ b/src/main/java/org/github/paperspigot/PaperSpigotWorldConfig.java
|
||||
@@ -156,4 +156,11 @@ public class PaperSpigotWorldConfig
|
||||
@@ -164,4 +164,11 @@ public class PaperSpigotWorldConfig
|
||||
log( "TNT/Falling Block Height Limit set to Y: " + fallingBlockHeightNerf);
|
||||
}
|
||||
}
|
@ -1,33 +0,0 @@
|
||||
From dae0d90aa3e356673e9f24e46517e3631aff4974 Mon Sep 17 00:00:00 2001
|
||||
From: Dmck2b <suddenly@suddenly.coffee>
|
||||
Date: Mon, 4 Aug 2014 02:56:23 +0100
|
||||
Subject: [PATCH] Don't log debug information
|
||||
|
||||
|
||||
diff --git a/src/main/resources/log4j2.xml b/src/main/resources/log4j2.xml
|
||||
index adc0181..468dfea 100644
|
||||
--- a/src/main/resources/log4j2.xml
|
||||
+++ b/src/main/resources/log4j2.xml
|
||||
@@ -14,14 +14,13 @@
|
||||
</RollingRandomAccessFile>
|
||||
</Appenders>
|
||||
<Loggers>
|
||||
- <Root level="all">
|
||||
+ <Root level="info">
|
||||
<filters>
|
||||
<MarkerFilter marker="NETWORK_PACKETS" onMatch="DENY" onMismatch="NEUTRAL" />
|
||||
</filters>
|
||||
- <AppenderRef ref="WINDOWS_COMPAT" level="info"/>
|
||||
+ <AppenderRef ref="WINDOWS_COMPAT"/>
|
||||
<AppenderRef ref="File"/>
|
||||
- <AppenderRef ref="TerminalConsole" level="info"/>
|
||||
+ <AppenderRef ref="TerminalConsole"/>
|
||||
</Root>
|
||||
</Loggers>
|
||||
-</Configuration>
|
||||
-
|
||||
+</Configuration>
|
||||
\ No newline at end of file
|
||||
--
|
||||
1.8.4.msysgit.0
|
||||
|
@ -1,4 +1,4 @@
|
||||
From 3ed41430e90a11705a2d857d72f052b83fb79d0e Mon Sep 17 00:00:00 2001
|
||||
From 8260d6efa8936d75822c4b324ecae9e4ac299033 Mon Sep 17 00:00:00 2001
|
||||
From: Jedediah Smith <jedediah@silencegreys.com>
|
||||
Date: Wed, 6 Aug 2014 18:17:41 -0500
|
||||
Subject: [PATCH] Center TNT grid sample points
|
@ -1,11 +1,11 @@
|
||||
From 7829ffe30ea4dc9b409cd5140140b84a3372cc27 Mon Sep 17 00:00:00 2001
|
||||
From 10bf5e90254667d8ead33152b4ae4842d31d88fc Mon Sep 17 00:00:00 2001
|
||||
From: Jedediah Smith <jedediah@silencegreys.com>
|
||||
Date: Fri, 8 Aug 2014 22:51:26 -0500
|
||||
Subject: [PATCH] Player affects spawning API
|
||||
|
||||
|
||||
diff --git a/src/main/java/net/minecraft/server/EntityHuman.java b/src/main/java/net/minecraft/server/EntityHuman.java
|
||||
index 08987f2..649e0d3 100644
|
||||
index 22776ad..67745b1 100644
|
||||
--- a/src/main/java/net/minecraft/server/EntityHuman.java
|
||||
+++ b/src/main/java/net/minecraft/server/EntityHuman.java
|
||||
@@ -41,6 +41,7 @@ public abstract class EntityHuman extends EntityLiving implements ICommandListen
|
@ -1,4 +1,4 @@
|
||||
From ee7f178f022584989b8dd9d27b456e8d832ae0ca Mon Sep 17 00:00:00 2001
|
||||
From b376680ab8cd0bd29566e11b7879db8b6cc83fed Mon Sep 17 00:00:00 2001
|
||||
From: drXor <mcyoung@mit.edu>
|
||||
Date: Sat, 9 Aug 2014 17:24:20 -0500
|
||||
Subject: [PATCH] Configurable hanging tick
|
||||
@ -18,10 +18,10 @@ index eec465b..3b6d152 100644
|
||||
if (!this.dead && !this.survives()) {
|
||||
// CraftBukkit start - fire break events
|
||||
diff --git a/src/main/java/org/github/paperspigot/PaperSpigotWorldConfig.java b/src/main/java/org/github/paperspigot/PaperSpigotWorldConfig.java
|
||||
index 256316e..16eb1ca 100644
|
||||
index ce3fb73..552a53c 100644
|
||||
--- a/src/main/java/org/github/paperspigot/PaperSpigotWorldConfig.java
|
||||
+++ b/src/main/java/org/github/paperspigot/PaperSpigotWorldConfig.java
|
||||
@@ -163,4 +163,11 @@ public class PaperSpigotWorldConfig
|
||||
@@ -171,4 +171,11 @@ public class PaperSpigotWorldConfig
|
||||
waterOverLavaFlowSpeed = getInt( "water-over-lava-flow-speed", 5 );
|
||||
log( "Water over lava flow speed: " + waterOverLavaFlowSpeed);
|
||||
}
|
@ -1,4 +1,4 @@
|
||||
From 80de92273b24ee6372910c4041c13147ac411a56 Mon Sep 17 00:00:00 2001
|
||||
From 6331ec0f4754f0bf76c11e52a3d1ca1dac0925df Mon Sep 17 00:00:00 2001
|
||||
From: Iceee <andrew@opticgaming.tv>
|
||||
Date: Fri, 11 Jul 2014 01:31:43 -0500
|
||||
Subject: [PATCH] Don't tick chests
|
Loading…
Reference in New Issue
Block a user