Fix item NPE handling forge caps

This commit is contained in:
IzzelAliz 2021-06-20 21:56:39 +08:00
parent abf9928a7b
commit 7294713cbe
2 changed files with 2 additions and 1 deletions

View File

@ -30,6 +30,7 @@ public abstract class CraftItemStackMixin implements CraftItemStackBridge {
@Inject(method = "getItemMeta(Lnet/minecraft/item/ItemStack;)Lorg/bukkit/inventory/meta/ItemMeta;", at = @At("RETURN"))
private static void arclight$offerCaps(ItemStack item, CallbackInfoReturnable<ItemMeta> cir) {
if (item == null) return;
ItemMeta meta = cir.getReturnValue();
CompoundNBT tag = item.getTag();
if (tag != null) {

View File

@ -1,6 +1,6 @@
allprojects {
group 'io.izzel.arclight'
version '1.0.19'
version '1.0.20-SNAPSHOT'
ext {
agpVersion = '1.17'