Log null data as "(incompatible data)".

This commit is contained in:
asofold 2015-11-23 06:41:22 +01:00
parent 0c6c38b2e1
commit 7d57e68578

View File

@ -150,7 +150,7 @@ public class FlyingFrequency extends BaseAdapter {
// }
if (data.debug) {
NCPAPIProvider.getNoCheatPlusAPI().getLogManager().debug(Streams.TRACE_FILE, player.getName() + " " + packetData + (event.isCancelled() ? " CANCEL" : ""));
NCPAPIProvider.getNoCheatPlusAPI().getLogManager().debug(Streams.TRACE_FILE, player.getName() + " " +(packetData == null ? "(incompatible data)" : packetData) + (event.isCancelled() ? " CANCEL" : ""));
}
}