Bump Fabric API

This commit is contained in:
FlorianMichael 2024-06-09 12:33:08 +02:00
parent 8525292b09
commit 9a9b4a8d88
No known key found for this signature in database
GPG Key ID: C2FB87E71C425126
2 changed files with 3 additions and 2 deletions

View File

@ -6,7 +6,7 @@ org.gradle.parallel=true
minecraft_version=1.20.6
yarn_mappings=1.20.6+build.1
loader_version=0.15.10
fabric_api_version=0.97.8+1.20.6
fabric_api_version=0.100.0+1.20.6
# Project Details
mod_version=3.3.1-SNAPSHOT

View File

@ -29,8 +29,9 @@ public class ItemUtil {
public static NbtCompound getTagOrNull(final ItemStack stack) {
if (!stack.contains(DataComponentTypes.CUSTOM_DATA)) {
return null;
} else {
return stack.get(DataComponentTypes.CUSTOM_DATA).getNbt();
}
return stack.get(DataComponentTypes.CUSTOM_DATA).getNbt();
}
}