mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2024-09-18 09:51:17 +02:00
Details about morepackets set-back.
This commit is contained in:
parent
65a7bf8b36
commit
530f85c03c
@ -67,8 +67,11 @@ public class MorePackets extends Check {
|
|||||||
|
|
||||||
Location newTo = null;
|
Location newTo = null;
|
||||||
|
|
||||||
if (data.morePacketsSetback == null)
|
if (data.morePacketsSetback == null){
|
||||||
data.morePacketsSetback = from.getLocation();
|
// TODO: Check if other set-back is appropriate or if to set on other events.
|
||||||
|
if (data.setBack != null) data.morePacketsSetback = data.setBack.clone();
|
||||||
|
else data.morePacketsSetback = from.getLocation();
|
||||||
|
}
|
||||||
|
|
||||||
// Take a packet from the buffer.
|
// Take a packet from the buffer.
|
||||||
data.morePacketsBuffer--;
|
data.morePacketsBuffer--;
|
||||||
|
@ -67,8 +67,10 @@ public class MorePacketsVehicle extends Check {
|
|||||||
|
|
||||||
Location newTo = null;
|
Location newTo = null;
|
||||||
|
|
||||||
if (data.morePacketsVehicleSetback == null)
|
if (data.morePacketsVehicleSetback == null){
|
||||||
data.morePacketsVehicleSetback = from;
|
// TODO: Check if other set-back is appropriate or if to set on other events.
|
||||||
|
data.morePacketsVehicleSetback = from;
|
||||||
|
}
|
||||||
|
|
||||||
// Take a packet from the buffer.
|
// Take a packet from the buffer.
|
||||||
data.morePacketsVehicleBuffer--;
|
data.morePacketsVehicleBuffer--;
|
||||||
|
Loading…
Reference in New Issue
Block a user