mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2025-01-31 03:41:22 +01:00
clean up some additional data
This commit is contained in:
parent
5cf84693b9
commit
6063b319a7
@ -17,4 +17,12 @@ public class BlockBreakData extends Data {
|
||||
public double noswingVL = 0.0D;
|
||||
public double reachDistance;
|
||||
public boolean armswung = true;
|
||||
|
||||
@Override
|
||||
public void clearCriticalData() {
|
||||
instaBrokenBlockLocation.reset();
|
||||
brokenBlockLocation.reset();
|
||||
directionLastViolationTime = 0;
|
||||
armswung = true;
|
||||
}
|
||||
}
|
||||
|
@ -1,7 +1,5 @@
|
||||
package cc.co.evenprime.bukkit.nocheat.data;
|
||||
|
||||
import org.bukkit.Material;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
@ -14,11 +12,11 @@ public class BlockPlaceData extends Data {
|
||||
|
||||
public final SimpleLocation blockPlacedAgainst = new SimpleLocation();
|
||||
public final SimpleLocation blockPlaced = new SimpleLocation();
|
||||
public Material placedType;
|
||||
public double reachdistance;
|
||||
|
||||
public void clearCriticalData() {
|
||||
blockPlacedAgainst.reset();
|
||||
blockPlaced.reset();
|
||||
directionLastViolationTime = 0;
|
||||
}
|
||||
}
|
||||
|
@ -10,5 +10,4 @@ public class ChatData extends Data {
|
||||
public final ExecutionHistory history = new ExecutionHistory();
|
||||
public String message = "";
|
||||
public int spamVL;
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user