diff --git a/pom.xml b/pom.xml
index 9ef8bfd..9842297 100644
--- a/pom.xml
+++ b/pom.xml
@@ -4,7 +4,7 @@
4.0.0
net.sourcewriters.minecraft
vcompat-parent
- 3.0.3
+ 3.0.4
pom
diff --git a/vcompat-1_17_R1/pom.xml b/vcompat-1_17_R1/pom.xml
index 58439e4..9122055 100644
--- a/vcompat-1_17_R1/pom.xml
+++ b/vcompat-1_17_R1/pom.xml
@@ -5,7 +5,7 @@
net.sourcewriters.minecraft
vcompat-parent
- 3.0.3
+ 3.0.4
vcompat-1_17_R1
diff --git a/vcompat-1_17_R1/src/main/java/net/sourcewriters/minecraft/vcompat/provider/impl/v1_17_R1/entity/Player1_17_R1.java b/vcompat-1_17_R1/src/main/java/net/sourcewriters/minecraft/vcompat/provider/impl/v1_17_R1/entity/Player1_17_R1.java
index 1145314..9ba22fc 100644
--- a/vcompat-1_17_R1/src/main/java/net/sourcewriters/minecraft/vcompat/provider/impl/v1_17_R1/entity/Player1_17_R1.java
+++ b/vcompat-1_17_R1/src/main/java/net/sourcewriters/minecraft/vcompat/provider/impl/v1_17_R1/entity/Player1_17_R1.java
@@ -279,8 +279,8 @@ private final void update(boolean flag) {
properties.put("textures", new Property("textures", skin.getValue(), skin.getSignature()));
}
- String name = getName();
- if (name != null) {
+ String name = dataAdapter.get("name", WrapType.STRING);
+ if (name != null && !name.isBlank()) {
VersionCompatProvider.get().getLookupProvider().getLookup("mjGameProfile").setFieldValue(profile, "name", name);
}
diff --git a/vcompat-1_18_R1/pom.xml b/vcompat-1_18_R1/pom.xml
index 0c9a3ac..e09ed76 100644
--- a/vcompat-1_18_R1/pom.xml
+++ b/vcompat-1_18_R1/pom.xml
@@ -5,7 +5,7 @@
net.sourcewriters.minecraft
vcompat-parent
- 3.0.3
+ 3.0.4
vcompat-1_18_R1
diff --git a/vcompat-1_18_R1/src/main/java/net/sourcewriters/minecraft/vcompat/provider/impl/v1_18_R1/entity/Player1_18_R1.java b/vcompat-1_18_R1/src/main/java/net/sourcewriters/minecraft/vcompat/provider/impl/v1_18_R1/entity/Player1_18_R1.java
index a3ac23a..f2e209b 100644
--- a/vcompat-1_18_R1/src/main/java/net/sourcewriters/minecraft/vcompat/provider/impl/v1_18_R1/entity/Player1_18_R1.java
+++ b/vcompat-1_18_R1/src/main/java/net/sourcewriters/minecraft/vcompat/provider/impl/v1_18_R1/entity/Player1_18_R1.java
@@ -279,8 +279,8 @@ private final void update(boolean flag) {
properties.put("textures", new Property("textures", skin.getValue(), skin.getSignature()));
}
- String name = getName();
- if (name != null) {
+ String name = dataAdapter.get("name", WrapType.STRING);
+ if (name != null && !name.isBlank()) {
VersionCompatProvider.get().getLookupProvider().getLookup("mjGameProfile").setFieldValue(profile, "name", name);
}
diff --git a/vcompat-1_18_R2/pom.xml b/vcompat-1_18_R2/pom.xml
index 28604aa..64d4717 100644
--- a/vcompat-1_18_R2/pom.xml
+++ b/vcompat-1_18_R2/pom.xml
@@ -5,7 +5,7 @@
net.sourcewriters.minecraft
vcompat-parent
- 3.0.3
+ 3.0.4
vcompat-1_18_R2
diff --git a/vcompat-1_18_R2/src/main/java/net/sourcewriters/minecraft/vcompat/provider/impl/v1_18_R2/entity/Player1_18_R2.java b/vcompat-1_18_R2/src/main/java/net/sourcewriters/minecraft/vcompat/provider/impl/v1_18_R2/entity/Player1_18_R2.java
index e1d9383..f9e7817 100644
--- a/vcompat-1_18_R2/src/main/java/net/sourcewriters/minecraft/vcompat/provider/impl/v1_18_R2/entity/Player1_18_R2.java
+++ b/vcompat-1_18_R2/src/main/java/net/sourcewriters/minecraft/vcompat/provider/impl/v1_18_R2/entity/Player1_18_R2.java
@@ -279,8 +279,8 @@ private final void update(boolean flag) {
properties.put("textures", new Property("textures", skin.getValue(), skin.getSignature()));
}
- String name = getName();
- if (name != null) {
+ String name = dataAdapter.get("name", WrapType.STRING);
+ if (name != null && !name.isBlank()) {
VersionCompatProvider.get().getLookupProvider().getLookup("mjGameProfile").setFieldValue(profile, "name", name);
}
diff --git a/vcompat-api/pom.xml b/vcompat-api/pom.xml
index 919032c..6518f5d 100644
--- a/vcompat-api/pom.xml
+++ b/vcompat-api/pom.xml
@@ -3,7 +3,7 @@
net.sourcewriters.minecraft
vcompat-parent
- 3.0.3
+ 3.0.4
vcompat-api
diff --git a/vcompat-core/pom.xml b/vcompat-core/pom.xml
index fa949f3..3428eb5 100644
--- a/vcompat-core/pom.xml
+++ b/vcompat-core/pom.xml
@@ -3,7 +3,7 @@
net.sourcewriters.minecraft
vcompat-parent
- 3.0.3
+ 3.0.4
vcompat
diff --git a/vcompat-legacy/pom.xml b/vcompat-legacy/pom.xml
index 4963ec7..58d5512 100644
--- a/vcompat-legacy/pom.xml
+++ b/vcompat-legacy/pom.xml
@@ -3,7 +3,7 @@
net.sourcewriters.minecraft
vcompat-parent
- 3.0.3
+ 3.0.4
vcompat-legacy