fix client prediction

This commit is contained in:
HF 2021-07-31 22:48:11 +02:00
parent cc9d36e056
commit fae1cef617

View File

@ -77,7 +77,7 @@ export function receivePixelUpdate(
&& predPxl[2] === offset
) {
if (predPxl[4] === color) {
clientPredictions.splice(i, 1);
clientPredictions.splice(p, 1);
}
return;
}