mirror of
https://github.com/ViaVersion/ViaVersion.git
synced 2025-02-22 14:41:57 +01:00
Use the correct platform name and version for Sponge
This commit is contained in:
parent
10a2df5a7d
commit
9937a173d1
@ -87,12 +87,12 @@ public class SpongePlugin implements ViaPlatform {
|
||||
|
||||
@Override
|
||||
public String getPlatformName() {
|
||||
return game.getPlatform().getApi().getName();
|
||||
return game.getPlatform().getImplementation().getName();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getPlatformVersion() {
|
||||
return game.getPlatform().getApi().getId();
|
||||
return game.getPlatform().getImplementation().getVersion().orElse("Unknown Version");
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
Reference in New Issue
Block a user