mirror of
https://github.com/ViaVersion/ViaFabricPlus.git
synced 2024-11-16 10:55:39 +01:00
Bump Fabric API
This commit is contained in:
parent
8525292b09
commit
9a9b4a8d88
@ -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
|
||||
|
@ -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();
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user