2015-06-04 10:57:23 +00:00
|
|
|
From 365e3440181bcd076813df0cb45f8a6b30ec72a3 Mon Sep 17 00:00:00 2001
|
2015-04-18 09:46:53 +00:00
|
|
|
From: Roman Alexander <romanalexander@users.noreply.github.com>
|
|
|
|
Date: Fri, 27 Mar 2015 00:52:24 -0400
|
|
|
|
Subject: [PATCH] Toggleable player crits, helps mitigate hacked clients.
|
|
|
|
|
|
|
|
|
|
|
|
diff --git a/src/main/java/net/minecraft/server/EntityHuman.java b/src/main/java/net/minecraft/server/EntityHuman.java
|
2015-05-30 06:11:16 +00:00
|
|
|
index 8d2b3a1..961b53b 100644
|
2015-04-18 09:46:53 +00:00
|
|
|
--- a/src/main/java/net/minecraft/server/EntityHuman.java
|
|
|
|
+++ b/src/main/java/net/minecraft/server/EntityHuman.java
|
|
|
|
@@ -974,7 +974,7 @@ public abstract class EntityHuman extends EntityLiving {
|
|
|
|
}
|
|
|
|
|
|
|
|
if (f > 0.0F || f1 > 0.0F) {
|
|
|
|
- boolean flag = this.fallDistance > 0.0F && !this.onGround && !this.k_() && !this.V() && !this.hasEffect(MobEffectList.BLINDNESS) && this.vehicle == null && entity instanceof EntityLiving;
|
|
|
|
+ boolean flag = !world.paperSpigotConfig.disablePlayerCrits && this.fallDistance > 0.0F && !this.onGround && !this.k_() && !this.V() && !this.hasEffect(MobEffectList.BLINDNESS) && this.vehicle == null && entity instanceof EntityLiving; // PaperSpigot
|
|
|
|
|
|
|
|
if (flag && f > 0.0F) {
|
|
|
|
f *= 1.5F;
|
|
|
|
diff --git a/src/main/java/org/github/paperspigot/PaperSpigotWorldConfig.java b/src/main/java/org/github/paperspigot/PaperSpigotWorldConfig.java
|
2015-06-04 10:57:23 +00:00
|
|
|
index f11ca71..3c011c2 100644
|
2015-04-18 09:46:53 +00:00
|
|
|
--- a/src/main/java/org/github/paperspigot/PaperSpigotWorldConfig.java
|
|
|
|
+++ b/src/main/java/org/github/paperspigot/PaperSpigotWorldConfig.java
|
2015-06-04 10:57:23 +00:00
|
|
|
@@ -224,9 +224,11 @@ public class PaperSpigotWorldConfig
|
2015-04-18 09:46:53 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public boolean boatsDropBoats;
|
|
|
|
+ public boolean disablePlayerCrits;
|
|
|
|
private void mechanicsChanges()
|
|
|
|
{
|
|
|
|
boatsDropBoats = getBoolean( "game-mechanics.boats-drop-boats", false );
|
|
|
|
+ disablePlayerCrits = getBoolean( "game-mechanics.disable-player-crits", false );
|
|
|
|
}
|
|
|
|
|
|
|
|
public boolean netherVoidTopDamage;
|
|
|
|
--
|
2015-06-04 08:42:09 +00:00
|
|
|
1.9.5.msysgit.1
|
2015-04-18 09:46:53 +00:00
|
|
|
|