mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-06 15:12:13 -07:00
1.21.6 dev
Co-authored-by: Bjarne Koll <git@lynxplay.dev> Co-authored-by: Jake Potrebic <jake.m.potrebic@gmail.com> Co-authored-by: Jason Penilla <11360596+jpenilla@users.noreply.github.com> Co-authored-by: Lulu13022002 <41980282+Lulu13022002@users.noreply.github.com> Co-authored-by: Noah van der Aa <ndvdaa@gmail.com> Co-authored-by: Owen1212055 <23108066+Owen1212055@users.noreply.github.com> Co-authored-by: Spottedleaf <Spottedleaf@users.noreply.github.com>
This commit is contained in:
committed by
Nassim Jahnke
parent
39203a65e0
commit
a24f9b204c
@@ -29346,10 +29346,10 @@ index 0000000000000000000000000000000000000000..62c0f4073aff301bf5b3187e0d4446fd
|
||||
+}
|
||||
diff --git a/ca/spottedleaf/dataconverter/util/CommandArgumentUpgrader.java b/ca/spottedleaf/dataconverter/util/CommandArgumentUpgrader.java
|
||||
new file mode 100644
|
||||
index 0000000000000000000000000000000000000000..40da70d5cf584a9730f9fe81c355cf8513fba475
|
||||
index 0000000000000000000000000000000000000000..9fab2371790596ab57298fe28b8983d85210c6d9
|
||||
--- /dev/null
|
||||
+++ b/ca/spottedleaf/dataconverter/util/CommandArgumentUpgrader.java
|
||||
@@ -0,0 +1,592 @@
|
||||
@@ -0,0 +1,597 @@
|
||||
+package ca.spottedleaf.dataconverter.util;
|
||||
+
|
||||
+import ca.spottedleaf.dataconverter.minecraft.MCDataConverter;
|
||||
@@ -29908,6 +29908,11 @@ index 0000000000000000000000000000000000000000..40da70d5cf584a9730f9fe81c355cf85
|
||||
+ ) {
|
||||
+ return Optional.of(new HolderLookup.RegistryLookup<T>() {
|
||||
+ @Override
|
||||
+ public Optional<T> getValueForCopying(final ResourceKey<T> resourceKey) {
|
||||
+ return Optional.empty();
|
||||
+ }
|
||||
+
|
||||
+ @Override
|
||||
+ public ResourceKey<? extends Registry<? extends T>> key() {
|
||||
+ return registryRef;
|
||||
+ }
|
||||
|
Reference in New Issue
Block a user