Fixed FastItemStack on 1.20.6

This commit is contained in:
Will FP
2024-05-11 16:26:29 +01:00
parent bff502c281
commit 697e0b7c9c
12 changed files with 30 additions and 22 deletions

View File

@@ -87,6 +87,10 @@ public interface ExtendedPersistentDataContainer {
* @return The extended container.
*/
static ExtendedPersistentDataContainer extend(@NotNull PersistentDataContainer base) {
if (base instanceof ExtendedPersistentDataContainer) {
return (ExtendedPersistentDataContainer) base;
}
return Eco.get().adaptPdc(base);
}