1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2025-11-12 03:13:00 +00:00

Simplify the previous patch a little

We can use BlockEntityType.getKey, rather than having to extend our
registry wrappers.
This commit is contained in:
Jonathan Coates
2024-03-17 16:21:56 +00:00
parent 128ac2f109
commit ab00580389
5 changed files with 2 additions and 22 deletions

View File

@@ -268,12 +268,6 @@ public class TestPlatformHelper extends AbstractComputerCraftAPI implements Plat
return key;
}
@Nullable
@Override
public ResourceLocation tryGetKey(T object) {
return registry.getKey(object);
}
@Override
public T get(ResourceLocation location) {
var object = registry.get(location);