mirror of
https://github.com/oliverbooth/VpSharp
synced 2024-11-23 00:18:46 +00:00
Use ternary for vp_query_cell
This works because CA wanted us to capture the return var, which we are just discarding. VP sometimes you are cursed but in a good way
This commit is contained in:
parent
9f16e6cc77
commit
189ef770eb
@ -33,14 +33,9 @@ public sealed partial class VirtualParadiseClient
|
|||||||
|
|
||||||
lock (Lock)
|
lock (Lock)
|
||||||
{
|
{
|
||||||
if (revision is not null)
|
_ = revision is not null
|
||||||
{
|
? vp_query_cell_revision(NativeInstanceHandle, cell.X, cell.Z, revision.Value)
|
||||||
vp_query_cell_revision(NativeInstanceHandle, cell.X, cell.Z, revision.Value);
|
: vp_query_cell(NativeInstanceHandle, cell.X, cell.Z);
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
vp_query_cell(NativeInstanceHandle, cell.X, cell.Z);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return channel.Reader.ReadAllAsync();
|
return channel.Reader.ReadAllAsync();
|
||||||
|
Loading…
Reference in New Issue
Block a user