mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2024-10-06 18:37:29 +02:00
Modified nofall check. Let the game decide if and when to do the
damage, we just set the "fallDistance".
This commit is contained in:
parent
de4acaa8c7
commit
e63d90e4cd
@ -3,7 +3,7 @@ name: NoCheat
|
||||
author: Evenprime
|
||||
|
||||
main: cc.co.evenprime.bukkit.nocheat.NoCheat
|
||||
version: 2.06
|
||||
version: 2.06a
|
||||
|
||||
permissions:
|
||||
|
||||
|
@ -72,7 +72,7 @@ public class NoCheat extends JavaPlugin {
|
||||
this.log = new LogManager(this);
|
||||
|
||||
|
||||
log.logToConsole(LogLevel.MED, "[NoCheat] This version is EXPERIMENTAL and built specifically for CB #1138. It may break at any time and for any other version.");
|
||||
log.logToConsole(LogLevel.MED, "[NoCheat] This version is EXPERIMENTAL and built specifically for CB #1150. It may break at any time and for any other version.");
|
||||
|
||||
this.data = new DataManager();
|
||||
|
||||
|
@ -69,7 +69,6 @@ public class NoFallCheck {
|
||||
// Increase the damage a bit :)
|
||||
float totalDistance = (data.fallDistance - 2.0F)* cc.moving.nofallMultiplier + 2.0F;
|
||||
player.setFallDistance(totalDistance);
|
||||
((CraftPlayer)player).getHandle().b(totalDistance, true);
|
||||
}
|
||||
|
||||
data.fallDistance = 0F;
|
||||
|
Loading…
Reference in New Issue
Block a user