From 0940693f5dea094d41e120bb92405fb9bb2b2884 Mon Sep 17 00:00:00 2001
From: MiniDigger | Martin <admin@minidigger.dev>
Date: Sun, 20 Jun 2021 11:50:36 +0200
Subject: [PATCH] add some more reobf mappings to fix tardis and terraform

---
 build-data/reobf-mappings-patch.tiny | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/build-data/reobf-mappings-patch.tiny b/build-data/reobf-mappings-patch.tiny
index 22eb47fd86..33fea4d20e 100644
--- a/build-data/reobf-mappings-patch.tiny
+++ b/build-data/reobf-mappings-patch.tiny
@@ -15,3 +15,9 @@ tiny	2	0	mojang+yarn	spigot
 # CraftBukkit changes this field's type, which causes the original mapping to miss
 c	net/minecraft/server/level/ServerLevel	net/minecraft/server/level/WorldServer
 	f	Lnet/minecraft/world/level/storage/PrimaryLevelData;	serverLevelData	E
+# generic hell TODO no clue why the return type here needs to be spigot mapped?
+c	net/minecraft/core/RegistryAccess	net/minecraft/core/IRegistryCustom
+	m	(Lnet/minecraft/resources/ResourceKey;)Lnet/minecraft/core/IRegistry;	registryOrThrow	d
+# paper changes type
+c	net/minecraft/core/MappedRegistry	net/minecraft/core/RegistryMaterials
+	f	Lit/unimi/dsi/fastutil/objects/Reference2IntOpenHashMap;	toId	bw