Fix NPE issue in EntityEventListener
Complex recipes were using the new Bukkit.craftItem() method which modifies the input recipe. So a copy of the matrix needs to made before hand to prevent it being modified. (The result is available in the CraftingResult record)
1.17+ introduced a different method to load entities which caused issues. Paper/Spigot now correctly handle bugged armour stands on chunk load.
Now that the Crafting API has been added in 1.17 NMS is no longer needed.