More more compile fixes
This commit is contained in:
@ -15,12 +15,17 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
+ // Paper start - with type
|
||||
+ @Override
|
||||
+ public ItemStack withType(final Material type) {
|
||||
+ if (type == Material.AIR) return CraftItemStack.asCraftMirror(null);
|
||||
+ if (type == Material.AIR) {
|
||||
+ return CraftItemStack.asCraftMirror(null);
|
||||
+ }
|
||||
+
|
||||
+ final net.minecraft.world.item.ItemStack copy = new net.minecraft.world.item.ItemStack(
|
||||
+ CraftItemType.bukkitToMinecraft(type), this.getAmount()
|
||||
+ );
|
||||
+ if (this.handle != null && this.handle.getTag() != null) copy.setTag(this.handle.getTag().copy());
|
||||
+
|
||||
+ if (this.handle != null) {
|
||||
+ copy.applyComponents(this.handle.getComponents());
|
||||
+ }
|
||||
+
|
||||
+ final CraftItemStack mirrored = CraftItemStack.asCraftMirror(copy);
|
||||
+ mirrored.setItemMeta(mirrored.getItemMeta());
|
||||
|
||||
Reference in New Issue
Block a user