Skip to content

Commit

Permalink
getDescriptor simplification
Browse files Browse the repository at this point in the history
  • Loading branch information
Technici4n committed Jan 9, 2025
1 parent 46e68fe commit 02a1ea2
Showing 1 changed file with 2 additions and 13 deletions.
15 changes: 2 additions & 13 deletions patches/com/mojang/blaze3d/framegraph/FrameGraphBuilder.java.patch
Original file line number Diff line number Diff line change
@@ -1,22 +1,11 @@
--- a/com/mojang/blaze3d/framegraph/FrameGraphBuilder.java
+++ b/com/mojang/blaze3d/framegraph/FrameGraphBuilder.java
@@ -173,6 +_,11 @@
public T get() {
return this.resource;
}
+
+ @Override
+ public ResourceDescriptor<T> getDescriptor() {
+ return null;
+ }
}

@OnlyIn(Dist.CLIENT)
@@ -211,6 +_,10 @@
@@ -211,6 +_,11 @@
public String toString() {
return this.createdBy != null ? this.holder + "#" + this.version + " (from " + this.createdBy + ")" : this.holder + "#" + this.version;
}
+
+ @Nullable
+ public ResourceDescriptor<T> getDescriptor() {
+ return this.holder.getDescriptor();
+ }
Expand Down

0 comments on commit 02a1ea2

Please sign in to comment.