clean up some additional data

This commit is contained in:
Evenprime 2011-11-16 16:18:19 +01:00
parent 5cf84693b9
commit 6063b319a7
3 changed files with 9 additions and 4 deletions

View File

@ -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;
}
}

View File

@ -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;
}
}

View File

@ -10,5 +10,4 @@ public class ChatData extends Data {
public final ExecutionHistory history = new ExecutionHistory();
public String message = "";
public int spamVL;
}