mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-23 08:23:12 +09:00
Remove unused filter
This commit is contained in:
1 parent
093b71045b
commit
c4d4cb3afd
2 files changed
-4
No files matched your search
@@ -353,20 +353,17 @@ export class GetPlayerPathRequest {
|
|||||||
|
|
||||||
constructor(
|
constructor(
|
||||||
public instance_id: number,
|
public instance_id: number,
|
||||||
public player_name: string,
|
|
||||||
public surface: string,
|
public surface: string,
|
||||||
) { }
|
) { }
|
||||||
|
|
||||||
static jsonSchema = Type.Object({
|
static jsonSchema = Type.Object({
|
||||||
"instance_id": Type.Number(),
|
"instance_id": Type.Number(),
|
||||||
"player_name": Type.String(),
|
|
||||||
"surface": Type.String(),
|
"surface": Type.String(),
|
||||||
});
|
});
|
||||||
|
|
||||||
static fromJSON(json: Static<typeof GetPlayerPathRequest.jsonSchema>) {
|
static fromJSON(json: Static<typeof GetPlayerPathRequest.jsonSchema>) {
|
||||||
return new this(
|
return new this(
|
||||||
json.instance_id,
|
json.instance_id,
|
||||||
json.player_name,
|
|
||||||
json.surface,
|
json.surface,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -584,7 +584,6 @@ export default function CanvasMinimapPage() {
|
|||||||
try {
|
try {
|
||||||
const resp = await control.send(new GetPlayerPathRequest(
|
const resp = await control.send(new GetPlayerPathRequest(
|
||||||
selectedInstance,
|
selectedInstance,
|
||||||
"*",
|
|
||||||
selectedSurface,
|
selectedSurface,
|
||||||
));
|
));
|
||||||
if (!resp.positions) { return null; }
|
if (!resp.positions) { return null; }
|
||||||
|
|||||||
Reference in new issue
Block a user