Skip to content

Commit 6b42a60

Browse files
authored
Mark command source meta as nullable (#5034)
1 parent ae1e076 commit 6b42a60

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

fabric-command-api-v2/src/client/java/net/fabricmc/fabric/api/client/command/v2/FabricClientCommandSource.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616

1717
package net.fabricmc.fabric.api.client.command.v2;
1818

19+
import org.jspecify.annotations.Nullable;
20+
1921
import net.minecraft.client.Minecraft;
2022
import net.minecraft.client.multiplayer.ClientLevel;
2123
import net.minecraft.client.player.LocalPlayer;
@@ -99,7 +101,7 @@ default Vec2 getRotation() {
99101
* @param key the meta key
100102
* @return the meta
101103
*/
102-
default Object getMeta(String key) {
104+
default @Nullable Object getMeta(String key) {
103105
return null;
104106
}
105107
}

0 commit comments

Comments
 (0)