ForgePatch/patches_old/minecraft/net/minecraft/world/storage/MapDecoration.java.patch

20 lines
606 B
Diff

--- a/net/minecraft/world/storage/MapDecoration.java
+++ b/net/minecraft/world/storage/MapDecoration.java
@@ -83,6 +83,16 @@
return i;
}
+ /**
+ * Renders this decoration, useful for custom sprite sheets.
+ * @param index The index of this icon in the MapData's list. Used by vanilla to offset the Z-coordinate to prevent Z-fighting
+ * @return false to run vanilla logic for this decoration, true to skip it
+ */
+ @OnlyIn(Dist.CLIENT)
+ public boolean render(int index) {
+ return false;
+ }
+
public static enum Type {
PLAYER(false),
FRAME(true),