Skip to content

Commit 7c7dcee

Browse files
committed
Add current environment (client or server) to the VV dump
Sometimes can be helpful if this isn't mentioned in a bug report
1 parent 2fc78ec commit 7c7dcee

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main/java/com/viaversion/fabric/common/provider/AbstractFabricPlatform.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -193,9 +193,8 @@ public JsonObject getDump() {
193193
mod.getMetadata().getAuthors().stream().map(it -> {
194194
JsonObject info = new JsonObject();
195195
JsonObject contact = new JsonObject();
196-
it.getContact().asMap().entrySet()
197-
.forEach(c -> contact.addProperty(c.getKey(), c.getValue()));
198-
if (contact.size() != 0) {
196+
it.getContact().asMap().forEach(contact::addProperty);
197+
if (!contact.isEmpty()) {
199198
info.add("contact", contact);
200199
}
201200
info.addProperty("name", it.getName());
@@ -212,6 +211,7 @@ public JsonObject getDump() {
212211
if (ver != null) {
213212
platformSpecific.addProperty("native version", ver.getNativeServerProtocolVersion().getVersion());
214213
}
214+
platformSpecific.addProperty("environment", FabricLoader.getInstance().getEnvironmentType().name());
215215
return platformSpecific;
216216
}
217217

0 commit comments

Comments
 (0)